search for: ros_issp

Displaying 4 results from an estimated 4 matches for "ros_issp".

Did you mean: rosh_issp
2009 Mar 06
4
rosh patch
...- int rv; - switch (inc){ - case ' ': case '\t': - rv = 1; break; - default: rv = 0; + int rv = 0 ; + + if ( ( inc == ' ') || ( inc == '\t') ) + { + rv = 1 ; } return rv; } /* ros_issp */ @@ -384,8 +384,7 @@ if (S_ISDIR(fdstat.st_mode)) { ROSH_DEBUG("PATH '%s' is a directory\n", ifilstr); d = fdopendir(fd); - de = readdir(d); - while (de != NULL) { +...
2009 Mar 07
3
rosh patch V2
Here is a second version of my patch from last night. It uses the provided ctype function isspace and does the same readdir(). I remove the rosh_issp() function. I admit to being a bit liberal with my use of braces and spaces. We all of the habit of knowing we can invent a more perfect wheel. Let me know if you have any questions. Keith -------------- next part -------------- A non-text
2009 Feb 15
2
COM32 module: Read-Only shell
...default: + puts(rosh_help_str1); + } +} + +/* Determine if a character is whitespace + * inc input character + * returns 0 if not whitespace + */ +int rosh_issp(char inc) +{ + int rv; + switch (inc){ + case ' ': case '\t': + rv = 1; break; + default: rv = 0; + } + return rv; +} /* ros_issp */ + +/* Search a string for first non-space (' ') character, starting at ipos + * istr input string to parse + * ipos input position to start at + */ +int rosh_search_nonsp(const char *istr, const int ipos) +{ + int curpos; + char c; + + curpos = ipos; + c = istr[curpos]; + while (rosh_iss...
2010 Jun 27
1
[PATCH] ROSH: Upgraded
..."); } -/* Determine if a character is whitespace - * inc input character - * returns 0 if not whitespace - */ -int rosh_issp(char inc) -{ - int rv; - switch (inc) { - case ' ': - case '\t': - rv = 1; - break; - default: - rv = 0; - } - return rv; -} /* ros_issp */ - /* Search a string for first non-space (' ') character, starting at ipos * istr input string to parse * ipos input position to start at @@ -85,7 +63,7 @@ int rosh_search_nonsp(const char *istr, const int ipos) curpos = ipos; c = istr[curpos]; - while (rosh_issp(c) &a...