Missing random.c from commit 198980b, review of newmlargt interface.

This commit is contained in:
Renaud 2015-09-29 15:06:08 +08:00
parent f13ae3957c
commit d3b02af275
1 changed files with 1 additions and 8 deletions

View File

@ -1185,18 +1185,11 @@ int fmatch(int ch)
}
static int iovstring( int f, int n, const char *prompt, int (*fun)( char *)) {
newarg_t *argp ;
int status ; /* status return code */
char *tstring ; /* string to add */
/* ask for string to insert */
argp = newmlargt( prompt, 0) ; /* grab as big a token as screen allow */
if( argp == NULL)
return FALSE ;
status = argp->status ;
tstring = argp->buf ;
free( argp) ;
status = newmlargt( &tstring, prompt, 0) ; /* grab as big a token as screen allow */
if( tstring == NULL)
return status ;