}
#endif
+#if defined(BB_SH)
+void trim(char *s)
+{
+ /* trim trailing whitespace */
+ while (isspace(s[strlen(s)-1]))
+ s[strlen(s)-1]='\0';
+
+ /* trim leading whitespace */
+ memmove(s, &s[strspn(s, " \n\r\t\v")], strlen(s));
+
+}
+#endif
+
/* END CODE */
/*
Local Variables: