ansilove

ANSI and ASCII art to PNG converter in C
Log | Files | Refs | README | LICENSE

commit 3d6e30c0811f02949ced2fd39f9c675c19d4b0ec
parent 877c221c4eae0ca611064625a940fbd2b2e8d135
Author: Frederic Cambus <fred@statdns.com>
Date:   Wed, 13 Jul 2016 15:31:41 +0200

Moving includes to substr.c

Diffstat:
Msrc/substr.c | 3++-
Msrc/substr.h | 5-----
2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/substr.c b/src/substr.c @@ -9,7 +9,8 @@ // See the file LICENSE for details. // -#include "substr.h" +#define _XOPEN_SOURCE 700 +#include <string.h> char *substr(char *str, size_t begin, size_t len) { diff --git a/src/substr.h b/src/substr.h @@ -9,11 +9,6 @@ // See the file LICENSE for details. // -#define _XOPEN_SOURCE 700 -#include <stdio.h> -#include <stdlib.h> -#include <string.h> - #ifndef substr_h #define substr_h