commit b20b820cd610536fc6f1355a4e7bf5e76d93a7ca parent 610608ed0334e19dd7268c052c6dcc7a9821a35c Author: ByteProject <stefan.vogt@byteproject.net> Date: Sat, 24 Dec 2011 03:20:03 +0100 importing their header now Diffstat:
M | ansilove/strtolower.c | | | 10 | +++------- |
M | ansilove/substr.c | | | 8 | ++------ |
2 files changed, 5 insertions(+), 13 deletions(-)
diff --git a/ansilove/strtolower.c b/ansilove/strtolower.c @@ -10,16 +10,12 @@ // #if defined(__APPLE__) && defined(__MACH__) -#import <Foundation/Foundation.h> +#import "strtolower.h" #else -#include <stdio.h> -#include <stdlib.h> -#include <ctype.h> +#include "strtolower.h" #endif -// In-place modification of a string to be all lower case. - -void strtolower(char str[]) +void strtolower(char str[]) { char *p; for (p = str; *p != '\0'; ++p) diff --git a/ansilove/substr.c b/ansilove/substr.c @@ -10,15 +10,11 @@ // #if defined(__APPLE__) && defined(__MACH__) -#import <Foundation/Foundation.h> +#import "substr.h" #else -#include <stdio.h> -#include <stdlib.h> -#include <string.h> +#include "substr.h" #endif -// Returns the portion of a string specified by start and length parameters. - char *substr(const char *str, size_t begin, size_t len) { if (str == 0 || strlen(str) == 0 || strlen(str) < begin || strlen(str) < (begin+len))