bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stdlib.h not found?


From: OKUJI Yoshinori
Subject: Re: stdlib.h not found?
Date: Fri, 27 Oct 2000 20:21:11 +0900

From: "Volker Augustin" <address@hidden>
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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]