ansilove

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

commit 9d796535afe0e1f628525d7d5d71151b3a96738f
parent b20b820cd610536fc6f1355a4e7bf5e76d93a7ca
Author: ByteProject <stefan.vogt@byteproject.net>
Date:   Sat, 24 Dec 2011 03:20:40 +0100

now proper C headers with guards

Diffstat:
Aansilove/strtolower.h | 26++++++++++++++++++++++++++
Aansilove/substr.h | 26++++++++++++++++++++++++++
2 files changed, 52 insertions(+), 0 deletions(-)

diff --git a/ansilove/strtolower.h b/ansilove/strtolower.h @@ -0,0 +1,26 @@ +// +// strtolower.h +// AnsiLove/C +// +// Copyright (c) 2011, Stefan Vogt. All rights reserved. +// http://byteproject.net +// +// Use of this source code is governed by a MIT-style license. +// See the file LICENSE for details. +// + +#if defined(__APPLE__) && defined(__MACH__) +#import <Foundation/Foundation.h> +#else +#include <stdio.h> +#include <stdlib.h> +#include <ctype.h> +#endif + +#ifndef strtolower_h +#define strtolower_h + +// In-place modification of a string to be all lower case. +void strtolower(char str[]); + +#endif diff --git a/ansilove/substr.h b/ansilove/substr.h @@ -0,0 +1,26 @@ +// +// substr.h +// AnsiLove/C +// +// Copyright (c) 2011, Stefan Vogt. All rights reserved. +// http://byteproject.net +// +// Use of this source code is governed by a MIT-style license. +// See the file LICENSE for details. +// + +#if defined(__APPLE__) && defined(__MACH__) +#import <Foundation/Foundation.h> +#else +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#endif + +#ifndef substr_h +#define substr_h + +// Returns the portion of a string specified by start and length parameters. +char *substr(const char *str, size_t begin, size_t len); + +#endif