Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
Yes, you should be able to set enviromental variables from a program. I
don't do enough C to remember the proper way but I suggest looking for a
setenv function. It'll probably exist in one of the standard GNU libs.
You could also create a shell script that sets the enviromental value
and then loads your program.
>Now here's the annoyance part of it (as if that wasn't annoying
>enough!)... I have written a C program that calls sort from the system to
>process some data. But it looks like the functioning of 'sort' will
>depend on environment variables. Is it possible to write the C program so
>that LC_ALL is set to C when sort is called? Do you have any other ideas
>on how to handle this problem? (I could use "sort -n" with some
>additional arguments to control sort keys, but those sorting-key arguments
>vary with the unix OS.)
>
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members