From: "Volker Augustin" <[EMAIL PROTECTED]>
Subject: Re: stdlib.h not found?
Date: Fri, 27 Oct 2000 12:58:52 +0200
> getopt.c uses stdlib.h so i though i could use it too. guess
> getopt.c is only included in the command line tool "grub" isn't it?
Yes.
> I found another way of solving the above problem. But it's not
> completely flexible. I have to declare an array of fixed size
> (=maximum number of argument parts) of type char ** which contains
> pointers to the beginnings of the parts of the argument. I insert
> '\0' after each part, but this changes the argument directly and i
> wanted to avoid this.
You can use the GNU extension, variable-length arrays. See the GCC
manual, for more details.
> Is there a way to use dynamic memory? There is code that uses malloc
> and free ...
Real memory management support will be one of new features in a
future version, as I said. For now, you cannot use memory so
flexibly.
Okuji
_______________________________________________
Bug-grub mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-grub