]> git.lizzy.rs Git - getline.git/commitdiff
Export getline signature
authorElias Fleckenstein <eliasfleckenstein@web.de>
Sun, 24 Apr 2022 16:09:32 +0000 (18:09 +0200)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Sun, 24 Apr 2022 16:09:32 +0000 (18:09 +0200)
getline.c
getline.h

index 07dd94b4318b949f8af54e1d6b8a40a39e15b5b7..6f78c8ac57c6fd9f22c204cee25ea6d9046533ff 100644 (file)
--- a/getline.c
+++ b/getline.c
@@ -7,9 +7,6 @@
 #include <errno.h>
 #include "getline.h"
 
-// if typedef doesn't exist (msvc, blah)
-typedef intptr_t ssize_t;
-
 ssize_t getline(char **lineptr, size_t *n, FILE *stream) {
     size_t pos;
     int c;
index de3e483571aaadcacfc8c9a304ced36a196fa774..282e36be2ef55d856d58357304ba2e1bfeae7992 100644 (file)
--- a/getline.h
+++ b/getline.h
@@ -4,4 +4,9 @@
 #include <stdio.h>
 #include <stdint.h>
 
+// if typedef doesn't exist (msvc, blah)
+typedef intptr_t ssize_t;
+
+ssize_t getline(char **lineptr, size_t *n, FILE *stream);
+
 #endif // _GETLINE_H_