Logo Search packages:      
Sourcecode: bglibs version File versions

int str_copyns ( str s,
unsigned int  count,
  ... 
)

Copy in the concatenation of N C strings

Definition at line 23 of file copyns.c.

References len, and str_cats().

{
  const char* ptr;
  va_list ap;
  va_start(ap, count);
  s->len = 0;
  while (count-- > 0) {
    if ((ptr = va_arg(ap, const char*)) != 0)
      if (!str_cats(s, ptr))
      return 0;
  }
  va_end(ap);
  return 1;
}


Generated by  Doxygen 1.6.0   Back to index