Lines Matching refs:result
37 char *result;
51 result = (char *) malloc (length);
52 if (result == NULL)
57 memcpy (result, (const char *) string, length);
58 return result;
62 result = NULL;
67 NULL, &result, &length) < 0)
69 /* Verify the result has exactly one NUL byte, at the end. */
70 if (!(length > 0 && result[length-1] == '\0'
71 && strlen (result) == length-1))
73 free (result);
77 return result;