File: str_copynz.c

package info (click to toggle)
ngetty 1.0-1
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 304 kB
  • ctags: 207
  • sloc: ansic: 1,503; makefile: 236; sh: 109; asm: 100
file content (7 lines) | stat: -rw-r--r-- 194 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
#include "str_defs.h"

unsigned int str_copynz(char *dest, const char *src, unsigned int n) /*EXTRACT_INCL*/ {
  unsigned int k=str_add(dest, src, n);
  while (k<n) dest[--n] = 0;
  return k;
}