Home
last modified time | relevance | path

Searched refs:numitems (Results 1 – 2 of 2) sorted by relevance

/netbsd-src/games/phantasia/
H A Dmisc.c164 double numitems; /* number of items to purchase */ in tradingpost() local
233 cost = (numitems = floor(infloat())) * Menu[0].cost; in tradingpost()
235 if (cost > Player.p_gold || numitems < 0) in tradingpost()
243 Player.p_mana += numitems; in tradingpost()
250 cost = (numitems = floor(infloat())) * Menu[1].cost; in tradingpost()
252 if (numitems == 0.0) in tradingpost()
255 if (cost > Player.p_gold || numitems < 0) in tradingpost()
258 if (numitems < Player.p_shield) in tradingpost()
266 Player.p_shield = numitems; in tradingpost()
273 cost = (numitems = floor(infloat())) * Menu[2].cost; in tradingpost()
[all …]
/netbsd-src/bin/csh/
H A Dfile.c457 free_items(Char **items, size_t numitems) in free_items() argument
461 for (i = 0; i < numitems; i++) in free_items()
466 #define FREE_ITEMS(items, numitems) { \ argument
472 free_items(items, numitems);\
487 size_t name_length, nignored, numitems; in tsearch() local
491 numitems = 0; in tsearch()
512 for (numitems = 0; (entry = getentry(dir_fd, looking_for_lognames)) != NULL;) { in tsearch()
520 if ((size_t)numitems >= maxitems) { in tsearch()
524 items[numitems] = xreallocarray(NULL, in tsearch()
526 copyn(items[numitems], entry, MAXNAMLEN); in tsearch()
[all …]