File:  [DVB] / dietlibc / lib / wcsncmp.c
Revision 1.1: download - view: text, annotated - select for diffs
Sun Mar 14 23:03:28 2010 UTC (14 years, 2 months ago) by leitner
Branches: MAIN
CVS tags: HEAD
add wcsncmp

#include <wchar.h>

int wcsncmp(const wchar_t *s1, const wchar_t *s2, size_t n) {
  size_t i;
  for (i=0; i<n && s1[i]==s2[i]; ++i) ;
  return s1[i]-s2[i];
}

LinuxTV legacy CVS <linuxtv.org/cvs>