/[rdesktop]/sourceforge.net/trunk/rdesktop/rdesktop.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/rdesktop.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 569 by n-ki, Wed Jan 21 14:40:40 2004 UTC revision 571 by n-ki, Wed Jan 21 18:17:20 2004 UTC
# Line 26  Line 26 
26  #include <sys/stat.h>           /* stat */  #include <sys/stat.h>           /* stat */
27  #include <sys/time.h>           /* gettimeofday */  #include <sys/time.h>           /* gettimeofday */
28  #include <sys/times.h>          /* times */  #include <sys/times.h>          /* times */
29    #include <ctype.h>              /* toupper */
30  #include <errno.h>  #include <errno.h>
31  #include "rdesktop.h"  #include "rdesktop.h"
32    
# Line 748  char * Line 749  char *
749  next_arg(char *src, char needle)  next_arg(char *src, char needle)
750  {  {
751          char *nextval;          char *nextval;
752            char *p;
753    
754          // EOS          // EOS
755          if (*src == (char) 0x00)          if (*src == (char) 0x00)
756                  return 0;                  return 0;
757    
758          // more args available.          p = src;
759          nextval = strchr(src, needle);          // skip escaped needles.
760            while( (nextval = strchr(p, needle) ) )
761            {
762                    if( *(nextval-1) != '\\' )
763                            break;
764                    p = nextval +1;
765            }
766    
767            // more args available
768          if (nextval)          if (nextval)
769          {          {
770                  *nextval = (char) 0x00;                  *nextval = (char) 0x00;
# Line 767  next_arg(char *src, char needle) Line 777  next_arg(char *src, char needle)
777  }  }
778    
779    
780  char *  void
781  toupper(char* p)  toupper_str(char* p)
782  {  {
783          while( *p ){          while( *p ){
784                  if( (*p >= 'a') && (*p <= 'z') )                  if( (*p >= 'a') && (*p <= 'z') )
785                          *p = *p - 32;                          *p = toupper((int) *p);
786                  p++;                  p++;
787          }          }
788  }  }

Legend:
Removed from v.569  
changed lines
  Added in v.571

  ViewVC Help
Powered by ViewVC 1.1.26