comparison nnchat.c @ 402:563a70e8a303

Oops, these functions were moved/renamed and were left out from a previous commit. :|
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 24 May 2012 05:03:58 +0300
parents 3f20ac9a9e1d
children 7bec02f382fb
comparison
equal deleted inserted replaced
401:3f20ac9a9e1d 402:563a70e8a303
890 } 890 }
891 else 891 else
892 return 1; 892 return 1;
893 } 893 }
894 894
895 char * trimLeft(char *buf) 895
896 { 896 {
897 while (*buf != 0 && th_isspace(*buf)) buf++; 897
898 return buf; 898
899 } 899 {
900
901 int compareUsername(const void *s1, const void *s2)
902 {
903 return th_strcasecmp((char *) s1, (char *) s2);
904 }
905 900
906 int handleUserInput(nn_conn_t *conn, char *buf, size_t bufLen) 901 int handleUserInput(nn_conn_t *conn, char *buf, size_t bufLen)
907 { 902 {
908 char *tmpStr, tmpBuf[4096]; 903 char *tmpStr, tmpBuf[4096];
909 BOOL result; 904 BOOL result;