Content deleted Content added
Fixed the Perl code |
Fix broken C code |
||
Line 136:
<source lang="C">
#include <string.h>
#include <ctypes.h>
rtrim(char *str)▼
▲void rtrim(char *str)
{
while (n > 0 && isspace((unsigned char)str[n - 1])) {
}
▲ ptr[1] = '\0';
}
void ltrim(char *str)
{
while (str[n] != '\0' && isspace((unsigned char)str[n])) {
n++;
}
}
void trim(char *str)
{
}
</source>
|