MPQC  3.0.0-alpha
string.h
1 
2 #ifndef _util_misc_string_h
3 #define _util_misc_string_h
4 
5 #include <string.h>
6 #include <stdlib.h>
7 
8 namespace sc {
9 
10 inline char *
11 strdup (const char *string)
12 {
13  return string ? strcpy ((char *) malloc (strlen (string) + 1), string) : 0;
14 }
15 
16 }
17 
18 #endif
sc
Contains all MPQC code up to version 3.
Definition: mpqcin.h:14

Generated at Sun Jan 26 2020 23:23:59 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.8.16.