| 
            Last change
 on this file since 5d30c1 was             5d30c1, checked in by Frederik Heber <heber@…>, 13 years ago           | 
        
        
          | 
             
Initial commit based on 3.0.0alpha (here claimed as 2.4). 
 
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            251 bytes
           | 
        
      
      
| Rev | Line |   | 
|---|
| [5d30c1] | 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
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.