"private" variable in C header file -
i new c programming , need c header file, manages 2 stacks. there should 2 methods: push , pop (but don't refer same stack).
push push data onto first stack gets popped , processed internally header functionality , output pushed (whenever) onto second stack
pop output data second stack if there any
the problem is, don't know how make second stack available pop method if there may not variables initialised in header file. seems wrong initialise stack in .c file.
the header file contain prototypes push
, pop
functions. data (variables etc.) declared, defined , initialized in source file push
, pop
functions defined.
Comments
Post a Comment