#include <stdio.h>
#include <stdlib.h>
char* del_space(char *str)
{
int i = -1, j = strlen(str), cur = 0;
char *fp = NULL;
char *fp_temp = NULL;
if (str == NULL)
{
return "error";
}
//去掉前后空格
while (str[++i] ==
C语言去掉字符串前后空格,中间多余空格
最新推荐文章于 2024-02-16 17:57:28 发布