From 8d9fa4a965068cee0b67f05d4462fce0b544cc23 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 16 Oct 2012 19:06:34 +0000 Subject: removed bizarre re-implementation of strlen() svn path=/branches/pd-extended/0.43/externals/oscx/; revision=16403 --- OSC-client.c | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/OSC-client.c b/OSC-client.c index 99645fa..73bc1a1 100644 --- a/OSC-client.c +++ b/OSC-client.c @@ -52,32 +52,26 @@ MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. #define DONE 4 /* All open bundles have been closed, so can't write anything else */ +#include +#include +#include + #ifdef _WIN32 #include #include - #include #include #include - #include #include #endif -#ifdef __APPLE__ - #include -#endif - #ifdef unix #include - #include #endif #include "OSC-client.h" char *OSC_errorMessage; -#ifndef _WIN32 - static int strlen(char *s); -#endif static int OSC_padString(char *dest, char *str); static int OSC_padStringWithAnExtraStupidComma(char *dest, char *str); static int OSC_WritePadding(char *dest, int i); @@ -427,14 +421,6 @@ int OSC_writeStringArg(OSCbuf *buf, char *arg) { /* String utilities */ -#ifndef _WIN32 -static int strlen(char *s) { - int i; - for (i=0; s[i] != '\0'; i++) /* Do nothing */ ; - return i; -} -#endif - #define STRING_ALIGN_PAD 4 int OSC_effectiveStringLength(char *string) { int len = strlen(string) + 1; /* We need space for the null char. */ -- cgit v1.2.1