Logo Search packages:      
Sourcecode: nbsmtp version File versions  Download package

void str_init ( string_t buffer,
int  size 

Initialize a string_t element.

[out] buffer Pointer to string_t
[in] size Num of chars that will be reserved

Definition at line 77 of file util.c.

References string::len, and string::str.

Referenced by main(), and parse_mail().

      buffer->str = malloc((size+1)*sizeof(char));
      buffer->len = size;

Generated by  Doxygen 1.6.0   Back to index