Re: libc + some other stuff
Heinrich Johannes Gantenbrink <[email protected]>
| Newsgroups | gmane.comp.lang.delphi.kylix |
|---|---|
| Message-ID | <1024307404.1093.7.camel@henock> |
Hi, try to use enviroment variables. Env-Var Value ========================== HOME Home-Directory of current user LOGNAME Name of current user HOSTNAME Name of Host There is an easy way to get the values of that env-vars via the RTL of kylix (?funtion envvariable(name:string):string?). I can't tell you the name of the function (haven't installed kylix on this comp), but it is in the System-Unit and it is very simple to use. CU, Henock Am Mon, 2002-06-17 um 10.03 schrieb cricque: i was searching for a way to get the username of whom started the application & hostname of the pc the app was running on in Kylix 2 Enterprise Edition on Redhat 7.3 and i found how to do it, add libc to uses clause & use some functions from libc, is this libc documented somewhere, cause i can get the username & hostname now, but the rest of the stuff is a bit cryptic :) in 99% of the cases homedir is /home/+username, but there are other cases is there any way to retrieve the current users homedir ? or if anyone has some more info about the libc functions available :) then another question, will this only work for libc, or can you use like any library available on your linux system ? [Non-text portions of this message have been removed] ------------------------------------------------------- Forum / mailing list for Borland Kylix programmers Our web page: http://groups.yahoo.com/group/kylixgroup To join the forum: [email protected] To unsubscribe: [email protected] To post your messages: [email protected] To contact the moderator: [email protected] ------------------------------------------------------- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.