[Freeswitch-branches] [commit] r10590 - freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax

FreeSWITCH SVN gmaruzz at freeswitch.org
Thu Dec 4 01:47:40 PST 2008


Author: gmaruzz
Date: Thu Dec  4 04:47:39 2008
New Revision: 10590

Log:
skypiax: added implementation for strsep, let's see it it works on win32

Modified:
   freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/mod_skypiax.c

Modified: freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/mod_skypiax.c
==============================================================================
--- freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/mod_skypiax.c	(original)
+++ freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/mod_skypiax.c	Thu Dec  4 04:47:39 2008
@@ -310,6 +310,29 @@
   SKYPECONTROLAPI_ATTACH_API_AVAILABLE = 0x8001
 };
 
+
+char
+*strsep(char **stringp, const char *delim)
+{
+  char *res;
+
+  if (!stringp || !*stringp || !**stringp)
+    return (char*)0;
+
+  res = *stringp;
+  while(**stringp && !strchr(delim, **stringp))
+    ++(*stringp);
+
+  if (**stringp) {
+    **stringp = '\0';
+    ++(*stringp);
+  }
+
+  return res;
+}
+
+
+
 LRESULT APIENTRY skypiax_skype_present(HWND hWindow, UINT uiMessage, WPARAM uiParam,
                                        LPARAM ulParam)
 {



More information about the Freeswitch-branches mailing list