~ubuntu-branches/ubuntu/raring/pidgin/raring

« back to all changes in this revision

Viewing changes to libpurple/protocols/msn/msnutils.c

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2012-01-05 15:46:36 UTC
  • mfrom: (2.3.25 sid)
  • Revision ID: package-import@ubuntu.com-20120105154636-h07dpbrej0ijgj3f
Tags: 1:2.10.2-1ubuntu1
New upstream version based on the Debian update

Show diffs side-by-side

added added

removed removed

Lines of Context:
490
490
        *ret_port = port;
491
491
}
492
492
 
 
493
void
 
494
msn_parse_user(const char *str, char **ret_user, int *ret_network)
 
495
{
 
496
        char **tokens;
 
497
 
 
498
        tokens = g_strsplit(str, ":", 2);
 
499
 
 
500
        *ret_network = atoi(tokens[0]);
 
501
        *ret_user = tokens[1];
 
502
 
 
503
        g_free(tokens[0]);
 
504
        /* tokens[1] is returned */
 
505
        g_free(tokens);
 
506
}
 
507
 
493
508
gboolean
494
509
msn_email_is_valid(const char *passport)
495
510
{