Topic: typedef help, please read
Author: Gemini@DeathStar
Date: Fri, 21 Oct 1994 17:39:05 GMT Raw View
In <CxzKLp.5oA@dorsai.org> tom@dorsai.org writes:
>Hello all, I am writing a c program about stacks. It involved the use of the
>typedef command. I know how to use [typedef int info] or anything that
>has to do with [int]. The application I am wrting requires the use of
>string or char array , how do I use the typedef command on that?
>I was thinking of doing something like this :[typedef char[] test]
>or [typedef char s[] test]
>Can anyone tell me the right way to do it?
>and please email your respond to
>John Vo
>jvo@its.brooklyn.cuny.edu
>but the address you see above would be acceptable.
>thank you.
This will do what you need.
typedef char String [100];
Good luck with your project!
_____________________________________________________________________
-- Amol.
Cannot receive e-mail. Please post.
Author: tom@dorsai.org
Date: Thu, 20 Oct 1994 19:25:01 GMT Raw View
Hello all, I am writing a c program about stacks. It involved the use of the
typedef command. I know how to use [typedef int info] or anything that
has to do with [int]. The application I am wrting requires the use of
string or char array , how do I use the typedef command on that?
I was thinking of doing something like this :[typedef char[] test]
or [typedef char s[] test]
Can anyone tell me the right way to do it?
and please email your respond to
John Vo
jvo@its.brooklyn.cuny.edu
but the address you see above would be acceptable.
thank you.