Searched refs:str_alloc (Results 1 - 6 of 6) sorted by relevance

/netbsd-6-1-5-RELEASE/external/lgpl3/gmp/dist/mpq/
H A Dget_str.c28 size_t str_alloc, len; local
33 str_alloc = 0;
39 str_alloc = ((size_t) ((ABS (q->_mp_num._mp_size) + q->_mp_den._mp_size)
43 str = (char *) (*__gmp_allocate_func) (str_alloc);
56 ASSERT (str_alloc == 0 || len+1 <= str_alloc);
61 if (str_alloc != 0)
62 __GMP_REALLOCATE_FUNC_MAYBE_TYPE (str, str_alloc, len+1, char);
/netbsd-6-1-5-RELEASE/usr.bin/window/
H A Dwindow_string.h68 char *str_alloc(size_t);
72 #define str_alloc(s) malloc(s) macro
H A Dstring.c57 str = p = str_alloc(strlen(s) + 1);
74 str = p = str_alloc(n + 1);
99 str = p = str_alloc(strlen(s1) + strlen(s2) + 1);
123 str_alloc(size_t l) function
H A Dcmd7.c267 if ((yp->line = str_alloc(yp->length + 1)) == NULL) {
H A Dlcmd2.c326 if ((str = str_alloc(n)) == 0) {
/netbsd-6-1-5-RELEASE/external/lgpl3/gmp/dist/tests/mpq/
H A Dt-get_str.c32 size_t str_alloc; local
37 str_alloc =
42 if (strlen(str)+1 > str_alloc)
47 printf (" want size %lu\n", (unsigned long) str_alloc);
61 str = (char *) (*__gmp_allocate_func) (str_alloc);
80 (*__gmp_free_func) (str, str_alloc);

Completed in 289 milliseconds