comparison th_datastruct.c @ 348:a001708551d0

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 25 Feb 2016 08:53:41 +0200
parents 2f067fbf6f13
children 5c5b3919263d
comparison
equal deleted inserted replaced
347:75b5e4c37e3a 348:a001708551d0
233 } 233 }
234 234
235 235
236 size_t th_llist_length(const th_llist_t *list) 236 size_t th_llist_length(const th_llist_t *list)
237 { 237 {
238 if (list == NULL) 238 return (list == NULL) ? 0 : list->num;
239 return 0;
240 else
241 return list->num;
242 } 239 }
243 240
244 241
245 ssize_t th_llist_position(const th_llist_t *list, const th_llist_t *node) 242 ssize_t th_llist_position(const th_llist_t *list, const th_llist_t *node)
246 { 243 {
584 memcpy(*buf + *len, str, slen + 1); 581 memcpy(*buf + *len, str, slen + 1);
585 (*len) += slen; 582 (*len) += slen;
586 583
587 return TRUE; 584 return TRUE;
588 } 585 }
589
590