switch the "namespace" to "lce"
[libcext.git] / fgetln.h
index 92a0f95d13c0d47d4078f94652a258da1a9c2778..93bd072be2601979e063689d9de6d7ffdbe132f2 100644 (file)
--- a/fgetln.h
+++ b/fgetln.h
  */
 
 /* https://git.datadissipation.net */
-#ifndef FGETLN_H_
- #define FGETLN_H_      1
+#ifndef LCE_FGETLN_H
+ #define LCE_FGETLN_H      1
 
- #ifdef FGETLN_INCLUDE_LIBC
+ #ifdef LCE_FGETLN_INCLUDE_LIBC
   #include <errno.h>
   #include <stdio.h>
   #include <stdlib.h>
   #include <string.h>
   #include <unistd.h>
- #endif /* FGETLN_INCLUDE_LIBC */
+ #endif /* LCE_FGETLN_INCLUDE_LIBC */
 
  #ifndef HAVE_FGETLN
   #define HAVE_FGETLN   1
-  #define fgetln        i_fgetln_
-char *i_fgetln_(FILE *, size_t *);
+  #define fgetln        lce_fgetln_
+char *lce_fgetln_(FILE *, size_t *);
  #endif /* !HAVE_FGETLN */
 
- #ifdef FGETLN_IMPLEMENTATION
+ #ifdef LCE_FGETLN_IMPLEMENTATION
 char *
-i_fgetln_(FILE *fp, size_t *len)
+lce_fgetln_(FILE *fp, size_t *len)
 {
        static char *buf = NULL;
        static size_t bufsiz = 0;
@@ -90,5 +90,5 @@ i_fgetln_(FILE *fp, size_t *len)
        *len = (ptr - buf) + 1;
        return buf;
 }
- #endif /* FGETLN_IMPLEMENTATION */
-#endif /* !FGETLN_H_ */
+ #endif /* LCE_FGETLN_IMPLEMENTATION */
+#endif /* !LCE_FGETLN_H */