Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. char* strncpy(char* strDest,const char* strSource,int count)
  2. {
  3.         char* res;
  4.         res=strDest;
  5.         while (count>0)
  6.         {
  7.                 *strDest=*strSource;
  8.                 if (*strSource!='\0')
  9.                         strSource++;
  10.                 strDest++;
  11.                 count--;
  12.         }
  13.         return res;
  14. }