Logo Search packages:      
Sourcecode: bglibs version File versions

int str_copyb ( str s,
const char *  in,
unsigned  len 
)

Copy in a binary block

Definition at line 34 of file copy.c.

References len, s, and str_ready.

Referenced by str_copy(), and str_copys().

{
  if (!str_ready(s, len)) return 0;
  memcpy(s->s, in, len);
  s->len = len;
  s->s[len] = 0;
  return 1;
}


Generated by  Doxygen 1.6.0   Back to index