File: str_add.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 (5 lines) | stat: -rw-r--r-- 158 bytes parent folder | download | duplicates (5)
1
2
3
4
5
unsigned int str_add(char *d, const char *s, unsigned int u) /*EXTRACT_INCL*/ {
  unsigned int l=0;
  for (l=0; s[l] && l<u; l++) d[l] = s[l];
  return(l);
}