src/lib/scan.c
char *strip_trailing_junk(char *cmd)
{
   char *p;

   /* strip trailing junk from command */
   p = cmd - 1 + strlen(cmd);
   while ((p >= cmd) && (B_ISSPACE(*p) || *p == '\n' || *p == '\r')) {
      *p-- = 0;
   } 
   return cmd;
}
/* Strip any trailing junk from the command */
Strip any trailing junk from the command
Strip any trailing junk from the command
char *strip_trailing_junk(char *cmd)
{
   char *p;
   p = cmd - 1 + strlen(cmd);
   while ((p >= cmd) && (B_ISSPACE(*p) || *p == '\n' || *p == '\r')) {
      *p-- = 0;
   } 
   return cmd;
}
char * strip_trailing_junk ( char * cmd ) { char * p ; p = cmd - 1 + strlen ( cmd ) ; while ( ( p >= cmd ) && ( B_ISSPACE ( * p ) || * p == ' \n ' || * p == ' \r ' ) ) { * p -- = 0 ; } return cmd ; }
Strip any trailing junk from the command
Strip any trailing junk from the command
/* strip trailing junk from command */