mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 05:12:55 +00:00
Delete all Trailing spaces in code.
svn path=/trunk/; revision=29690
This commit is contained in:
parent
a7fddf9c07
commit
ae7da04787
2821 changed files with 211074 additions and 211075 deletions
12
reactos/lib/3rdparty/adns/adns_win32/getopt.c
vendored
12
reactos/lib/3rdparty/adns/adns_win32/getopt.c
vendored
|
@ -1,11 +1,11 @@
|
|||
|
||||
/* jgaa oct 9th 2000: Found this on www.
|
||||
* No copyright information given.
|
||||
/* jgaa oct 9th 2000: Found this on www.
|
||||
* No copyright information given.
|
||||
* Slightly modidied.
|
||||
*
|
||||
* Origin: http://www.winsite.com/info/pc/win3/winsock/sossntr4.zip/SOSSNT/SRC/GETOPT.C.html
|
||||
*/
|
||||
|
||||
|
||||
/* got this off net.sources */
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -32,16 +32,16 @@ int getopt(int argc, char * const *argv, const char *optstring)
|
|||
{
|
||||
static char *place = EMSG; /* option letter processing */
|
||||
register char *oli; /* option letter list index */
|
||||
|
||||
|
||||
if(!*place) { /* update scanning pointer */
|
||||
if(optind >= argc || *(place = argv[optind]) != '-' || !*++place)
|
||||
if(optind >= argc || *(place = argv[optind]) != '-' || !*++place)
|
||||
return(EOF);
|
||||
if (*place == '-') { /* found "--" */
|
||||
++optind;
|
||||
return(EOF);
|
||||
}
|
||||
} /* option letter okay? */
|
||||
if ((optopt = (int)*place++) == (int)':' || !(oli = strchr(optstring,optopt)))
|
||||
if ((optopt = (int)*place++) == (int)':' || !(oli = strchr(optstring,optopt)))
|
||||
{
|
||||
if(!*place) ++optind;
|
||||
tell(": illegal option -- ");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue