diff options
| author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-12-23 19:53:04 +0100 | 
|---|---|---|
| committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-12-23 21:02:33 +0100 | 
| commit | 950e6c9148eca244a89d18a21d4ae4e5c3d1c646 (patch) | |
| tree | 8664cf3156b92e4083e0680a0a1f21e20a2b22c9 /src/file.c | |
| parent | b75293a565b6f319435516fe253bd61688ba3a1f (diff) | |
| download | blogc-950e6c9148eca244a89d18a21d4ae4e5c3d1c646.tar.gz blogc-950e6c9148eca244a89d18a21d4ae4e5c3d1c646.tar.bz2 blogc-950e6c9148eca244a89d18a21d4ae4e5c3d1c646.zip  | |
build: removing src/utils and replacing with squareball
squareball is a new general purpose library for C99, based on the code
removed from src/utils
Diffstat (limited to 'src/file.c')
| -rw-r--r-- | src/file.c | 8 | 
1 files changed, 4 insertions, 4 deletions
@@ -14,7 +14,7 @@  #include <stdarg.h>  #include <stdio.h>  #include <string.h> -#include "utils/utils.h" +#include <squareball.h>  #include "file.h"  #include "error.h" @@ -38,16 +38,16 @@ blogc_file_get_contents(const char *path, size_t *len, blogc_error_t **err)          return NULL;      } -    b_string_t *str = b_string_new(); +    sb_string_t *str = sb_string_new();      char buffer[BLOGC_FILE_CHUNK_SIZE];      while (!feof(fp)) {          size_t read_len = fread(buffer, sizeof(char), BLOGC_FILE_CHUNK_SIZE, fp);          *len += read_len; -        b_string_append_len(str, buffer, read_len); +        sb_string_append_len(str, buffer, read_len);      }      fclose(fp); -    return b_string_free(str, false); +    return sb_string_free(str, false);  }  | 
