string.h

00001 
00002 #ifndef _util_misc_string_h
00003 #define _util_misc_string_h
00004 
00005 #include <string.h>
00006 #include <stdlib.h>
00007 
00008 namespace sc {
00009 
00010 inline char * 
00011 strdup (const char *string)
00012 {
00013   return string ? strcpy ((char *) malloc (strlen (string) + 1), string) : 0;
00014 }
00015 
00016 }
00017 
00018 #endif

Generated at Mon Dec 3 23:23:41 2007 for MPQC 2.3.1 using the documentation package Doxygen 1.5.2.