summaryrefslogblamecommitdiff
path: root/src/common/include/string.h
blob: 19e87c1a376ea224aa9f0a579f0739d896bbd5a5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                     

                      
 



                  
                            
                                          
                                                         


                                           
 



                  
      
#ifndef _DEF_STRING_H
#define _DEF_STRING_H

// #include <stdlib.h>
#include <types.h>

#ifdef __cplusplus
extern "C" {
#endif

int strlen(const char *str);
char *strcpy(char *dest, const char *src);
char *strdup(const char *src); // uses malloc, that's bad
char *strchr(const char *str, char c);
char *strcat(char *dest, const char *src);
int strcmp(const char *s1, const char *s2);

#ifdef __cplusplus
}
#endif

#endif