[xiph-cvs] cvs commit: win32-tools/oggdrop oe_win32.c

Chris Wolf cwolf at xiph.org
Fri Sep 28 08:16:55 PDT 2001



cwolf       01/09/28 08:16:54

  Modified:    oggdrop  oe_win32.c
  Log:
  rindex is a BSD API, strrchr is POSIX, windows emulates POSIX

Revision  Changes    Path
1.3       +2 -16     win32-tools/oggdrop/oe_win32.c

Index: oe_win32.c
===================================================================
RCS file: /usr/local/cvsroot/win32-tools/oggdrop/oe_win32.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- oe_win32.c	2001/08/30 16:51:52	1.2
+++ oe_win32.c	2001/09/28 15:16:54	1.3
@@ -15,21 +15,8 @@
 #include <io.h>
 #include <stdlib.h>
 #include <time.h>
-#include "encode.h"
-
-/* This doesn't seem to exist on windows */
-char *rindex(char *s, int c)
-{
-	char *ret = NULL;
-
-	while(*s) {
-		if (*s == (char)c)
-			ret = s;
-		s++;
-	}
 
-	return ret;
-}
+#include "encode.h"
 
 void *timer_start(void)
 {
@@ -46,8 +33,7 @@
         return (double)(now-start);
 }
 
-
 void timer_clear(void *timer)
 {
         free((time_t *)timer);
-}
\ No newline at end of file
+}

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list