nightmaremail

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

str.h (349B)


      1 #ifndef STR_H
      2 #define STR_H
      3 
      4 #include <string.h>
      5 
      6 #define str_copy(s,t) strcpy((s),(t))
      7 #define str_diff(s,t) strcmp((s),(t))
      8 #define str_diffn(s,t,len) strncmp((s),(t),(len))
      9 #define str_len(s) strlen((s))
     10 extern unsigned int str_chr();
     11 extern unsigned int str_rchr();
     12 extern int str_start();
     13 
     14 #define str_equal(s,t) (strcmp((s),(t)) == 0)
     15 
     16 #endif