I have a file with different ways to write numbers
---- 8< (cut) --------
0: zero, zilch,, nada, ,,,, empty , void, oh
1: one
7: seven
2: two, too
---- >8 --------------
I wanted to read that file and put it into dynamic memory, like
char *** synonym;
/* assume everything is already malloc'd */
synonym[0][0] = "zero";
synonym[0][1] = "zilch";
/* ... */
synonym[4][0] = NULL;
/* ... */
synonym[7][0] = "seven";
synonym[7][1] = NULL;
synonym[8] = NULL;
After a few days (mostly nights) of struggling with it, the part of the
program that does that is done.
I welcome the approaching weekend to give it a rest before coding the
real reason for the program :)
Is it ok if I post 200 lines of newbie code, spread over three files,
for a code review on either alt.comp.lang.l earn.c-c++ or comp.lang.c?
--
If you're posting through Google read <http://cfaj.freeshell. org/google>
---- 8< (cut) --------
0: zero, zilch,, nada, ,,,, empty , void, oh
1: one
7: seven
2: two, too
---- >8 --------------
I wanted to read that file and put it into dynamic memory, like
char *** synonym;
/* assume everything is already malloc'd */
synonym[0][0] = "zero";
synonym[0][1] = "zilch";
/* ... */
synonym[4][0] = NULL;
/* ... */
synonym[7][0] = "seven";
synonym[7][1] = NULL;
synonym[8] = NULL;
After a few days (mostly nights) of struggling with it, the part of the
program that does that is done.
I welcome the approaching weekend to give it a rest before coding the
real reason for the program :)
Is it ok if I post 200 lines of newbie code, spread over three files,
for a code review on either alt.comp.lang.l earn.c-c++ or comp.lang.c?
--
If you're posting through Google read <http://cfaj.freeshell. org/google>
Comment