char* trim(char* s){
if( s==NULL )
return NULL;
char* t = strdup(s);
while( t[0]==' ' || t[0]=='\t' || t[0]=='\n' || t[0]=='\r' ){
t++;
}
int i = strlen(t) - 1;
while( i>=0 && (t[i]==' ' || t[i]=='\t' || t[i]=='\n' || t[i]=='\r') ){
t[i--] = 0;
}
return t;
}
Syntaxe: cf https://en.wikipedia.org/wiki/Help:Displaying_a_formula







