diff options
author | humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-14 19:42:08 +0000 |
---|---|---|
committer | humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-14 19:42:08 +0000 |
commit | 18a48c3c1c1aa183a1b1ab033be34329685199f6 (patch) | |
tree | 8d771a3e536f005854bfd1e23dc59d0ac7fbebeb /include | |
parent | 6d29eda49129893d8f5e385bfbe8473af154b82b (diff) |
replace getline with fgets for portability
BUG=
Review URL: https://codereview.appspot.com/7085058
git-svn-id: http://skia.googlecode.com/svn/trunk@7163 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkOSFile.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/include/core/SkOSFile.h b/include/core/SkOSFile.h index 685248cd00..257b66ae67 100644 --- a/include/core/SkOSFile.h +++ b/include/core/SkOSFile.h @@ -43,6 +43,9 @@ bool sk_frewind(SkFILE*); size_t sk_fread(void* buffer, size_t byteCount, SkFILE*); size_t sk_fwrite(const void* buffer, size_t byteCount, SkFILE*); + +char* sk_fgets(char* str, int size, SkFILE* f); + void sk_fflush(SkFILE*); int sk_fseek(SkFILE*, size_t, int); @@ -54,12 +57,6 @@ bool sk_exists(const char *path); // Returns true if a directory exists at this path. bool sk_isdir(const char *path); -// Get a single line of input from a file. Returns -1 on failure. -// passing NULL for lineptr will allocate memory for the line with -// sk_malloc; make sure to use sk_free to get rid of it when you're -// done. -ptrdiff_t sk_getline(char **lineptr, size_t *n, SkFILE *stream); - // Have we reached the end of the file? int sk_feof(SkFILE *); |