aboutsummaryrefslogtreecommitdiff
path: root/riemann.fmi.uni-sofia.bg/ngetty/ngetty-1.1/str_add.c
blob: a030d4ac2f469f2c5cc160cd7c4ab61ded8e339e (plain)
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);
}