#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语言去掉字符串前后空格,中间多余空格
最新推荐文章于 2025-04-29 16:51:47 发布