File: str_add.c

package info (click to toggle)
ngetty 1.1-3.1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 392 kB
  • sloc: ansic: 1,588; makefile: 206; sh: 193; 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);
}