One Really St00pid Question
asldh at acad2.anc.alaska.edu
asldh at acad2.anc.alaska.edu
Mon Jan 14 04:09:57 AEST 1991
Welp, I hope that nobody out there is too offended, but I need to ask a
Really Stupid Question. Ready? I am writing in MS-DOS Turbo C or Microsoft C,
and I need to be able to pass the data contained in a two-dimensional char
array from one function to another. I looked in all of my programming
references and found NOTHING on passing multi-dimensional arrays, and the
one-dimensional array method did not seem to work. I have constructed a
workaround at the moment, which consists of declaring a global array large
enough to handle any of the arrays I need to pass, and then filling it as
needed. However, this "solution" offends me -- it smells of old-time BASIC
methodology... :-} Can anyone offer me a more elegant method? I do not need
to alter the contents of the arrays (at present), but I do need to read them.
Thanks in advance for listening to the ramblings of another lost soul...
(If this is the WRONG newsgroup, please direct your flames to alt.nul...
Thanks!)
@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!
# % @
% Lars D. Hedbor ! The enduring and uninfringed freedom of #
! USAF, Inc. @ humanity is among the very few things %
@ Student at # worth devoting your entire life to. !
# UAA % @
% asldh at acad2a.anc.alaska.edu ! -Me, just this moment. #
! @ %
@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!
SysOp of the Observatory, (907) 277-3508, 3/12/24/9600, 8N1, Opus 1.14
These opinions are not necessarily even mine!
More information about the Comp.std.c
mailing list