|
|
1.1 ! root 1: ! 2: ! 3: va_end() Variable Arguments va_end() ! 4: ! 5: ! 6: ! 7: ! 8: Tidy up after traversal of argument list ! 9: ! 10: #iinncclluuddee <ssttddaarrgg.hh> ! 11: vvooiidd vvaa_eenndd(_l_i_s_t_p_t_r) ! 12: vvaa_lliisstt _l_i_s_t_p_t_r; ! 13: ! 14: vvaa_eenndd hheellppss ttoo ttiiddyy uupp aa ffuunnccttiioonn aafftteerr iitt hhaass ttrraavveerrsseedd tthhee ! 15: aarrgguummeenntt lliisstt ffoorr aa ffuunnccttiioonn tthhaatt ttaakkeess aa vvaarriiaabbllee nnuummbbeerr ooff ! 16: aarrgguummeennttss. IItt ccaann bbee uusseedd wwiitthh ffuunnccttiioonnss tthhaatt ttaakkee aa vvaarriiaabbllee ! 17: nnuummbbeerr ooff aarrgguummeennttss, ssuucchh aass pprriinnttff or ssccaannff, to help write such ! 18: functions portably. It should be used with the routines vvaa_aarrgg ! 19: and vvaa_ssttaarrtt from within a function that takes a variable number ! 20: of arguments. ! 21: ! 22: _l_i_s_t_p_t_r is of type vvaa_lliisstt, which is declared in header ssttddaarrgg.hh. ! 23: _l_i_s_t_p_t_r must first have been initialized by macro vvaa_ssttaarrtt. ! 24: ! 25: The ANSI Standard states that the manner of ``tidying up'' that ! 26: vvaa_eenndd performs will vary from one computing environment to ! 27: another. In many computing environments, vvaa_eenndd is not needed, ! 28: and it may be implemented as an empty function. ! 29: ! 30: ***** Example ***** ! 31: ! 32: For an example of this function, see the entry for vvaarriiaabbllee ! 33: aarrgguummeennttss. ! 34: ! 35: ***** See Also ***** ! 36: ! 37: vvaarriiaabbllee aarrgguummeennttss ! 38: ! 39: ***** Notes ***** ! 40: ! 41: If vvaa_lliisstt is not initialized by vvaa_ssttaarrtt, or if vvaa_eenndd is not ! 42: called before a function with variable arguments exits, then the ! 43: behavior of vvaa_eenndd is undefined. ! 44: ! 45: ! 46: ! 47: ! 48: ! 49: ! 50: ! 51: ! 52: ! 53: ! 54: ! 55: ! 56: ! 57: ! 58: ! 59: ! 60: ! 61: ! 62: ! 63: ! 64: COHERENT Lexicon Page 1 ! 65: ! 66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.