/[winpt]/trunk/Src/wptUtil.cpp
ViewVC logotype

Diff of /trunk/Src/wptUtil.cpp

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

revision 260 by twoaday, Wed Aug 16 10:01:30 2006 UTC revision 271 by twoaday, Sun Nov 5 08:57:45 2006 UTC
# Line 22  Line 22 
22  #include <config.h>  #include <config.h>
23  #endif  #endif
24    
25    #include <windows.h>
26  #include <string.h>  #include <string.h>
27  #include <stdlib.h>  #include <stdlib.h>
28  #include <stdio.h>  #include <stdio.h>
29  #include <ctype.h>  #include <ctype.h>
30    
31    #include "wptTypes.h"
32    
33  /* code taken from glibc-2.2.1/sysdeps/generic/strsep.c */  /* code taken from glibc-2.2.1/sysdeps/generic/strsep.c */
34  char*  char*
35  strsep (char **stringp, const char *delim)  strsep (char **stringp, const char *delim)
# Line 184  unhexify_buffer (const char *in, char ** Line 187  unhexify_buffer (const char *in, char **
187      out[i] = 0;      out[i] = 0;
188      *r_out = out;      *r_out = out;
189  }  }
190    
191    char*
192    m_strdup (const char *str)
193    {
194        char *p = new char[strlen (str)+1];
195        if (!p)
196            BUG (0);
197        strcpy (p, str);
198        return p;
199    }

Legend:
Removed from v.260  
changed lines
  Added in v.271

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26