On Tue, Jan 29, 2002 at 06:27:19AM -0000, [EMAIL PROTECTED] wrote:
>...
>   extern int main(int argc, char **argv, char **env);
>   
>   static int wastrtoastr(char ***retarr, int args, wchar_t **arr)
>   {
>       size_t elesize = 0;
>       char **newarr;
>       char *elements;

Should 'const' be used more throughout this code?

>       char *ele;
>       int arg;
>   
>       if (args < 0) {
>           for (args = 0; arr[args]; ++args)
>               ;
>       }
>   
>       newarr = malloc(arg * sizeof(char *));

Since this is Win32 specific code, is there a benefit to using Win32
allocation routines?

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/

Reply via email to