static void scrobbler_split_lines ( char *  str,
char *  lines[],
unsigned int  nlines 
) [static]

Split a string into multiple nul-terminated lines.

Definition at line 327 of file scrobbler.c.

00328 {
00329         unsigned int i;
00330 
00331         for (i = 0; i < nlines; i++) {
00332                 /* Keep track of the line */
00333                 lines[i] = str;
00334 
00335                 /*
00336                  * If we haven't finished processing the string, move it
00337                  * on to the next line.
00338                  */
00339                 if (str != NULL) {
00340                         str = strchr(str, '\n');
00341                         if (str != NULL)
00342                                 *str++ = '\0';
00343                 }
00344         }
00345 }

Here is the caller graph for this function:

 All Data Structures Files Functions Variables Defines
Generated on Mon Mar 15 04:45:47 2010 for herrie by  doxygen 1.6.3