Fork me on GitHub

root/include/fiwix/string.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * fiwix/include/fiwix/string.h
   3  *
   4  * Copyright 2018, Jordi Sanfeliu. All rights reserved.
   5  * Distributed under the terms of the Fiwix License.
   6  */
   7 
   8 #ifndef _INCLUDE_STRING_H
   9 #define _INCLUDE_STRING_H
  10 
  11 #include <fiwix/types.h>
  12 
  13 #ifndef NULL
  14 #define NULL    '\0'    /* ((void *)0) */
  15 #endif
  16 
  17 #define MIN(a,b)        ((a) < (b) ? (a) : (b))
  18 #define MAX(a,b)        ((a) > (b) ? (a) : (b))
  19 
  20 #define IS_NUMERIC(c)   ((c) >= '0' && (c) <= '9')
  21 #define IS_SPACE(c)     ((c) == ' ')
  22 
  23 void swap_asc_word(char *, int);
  24 int strcmp(const char *, const char *);
  25 int strncmp(const char *, const char *, __ssize_t);
  26 char * strcpy(char *, const char *);
  27 void strncpy(char *, const char *, int);
  28 char * strcat(char *, const char *);
  29 char * strncat(char *, const char *, __ssize_t);
  30 int strlen(const char *);
  31 char * get_basename(const char *);
  32 char * remove_trailing_slash(char *);
  33 int is_dir(const char *);
  34 int atoi(const char *);
  35 void memcpy_b(void *, const void *, unsigned int);
  36 void memcpy_w(void *, const void *, unsigned int);
  37 void memcpy_l(void *, const void *, unsigned int);
  38 void memset_b(void *, unsigned char, unsigned int);
  39 void memset_w(void *, unsigned short int, unsigned int);
  40 void memset_l(void *, unsigned int, unsigned int);
  41 
  42 #endif /* _INCLUDE_STRING_H */

/* [previous][next][first][last][top][bottom][index][help] */