... I can understand that, BUT the question looks like homework to the group (this is a fairly common homework assignment). So, if you want help, you'll have...
... Why do you want to compare to an infinite value? Are the values you want to compare with ints or floats/doubles? ... You're also going to get others...
Hi All, I have a executable file at a particular location in the filesystem. From root directory i run this exe. This exe will load a shared object from ...
... From ... can it ... Don't know- perhaps this is why application config files are usually in the user's home directory? Can you do that instead, or perhaps ...
... An infinite value? That doesn't make sense. Infinity isn't a number. Computers can only work with finite values and discrete structures. Why do yu need to...
... Yes, typically, a default config will be kept under /etc or /usr/share and user specific ones will be kept in the user's home directory. Most shells...
... Are we talking about IEEE floating point? If so, it provides a mechanism of specifying infinity. However, you aren't supposed to compare floating point...
... Most shells will set an environment variable indicating where the current user's home directory is. However, you should probably look at how other...
... But doesn't 'which' just do what the shell does when asked to execute a file ie. go through the directories in PATH looking for the specified file? In...
... Yes, that is what I was saying, you can defeat the executable path search, which makes the 'which' command not entirely reliable. Of course, on Unix...
... ..but to be pedantic, you said "different location that is earlier in the PATH than the real executable". If it is in the PATH, then which would work....
... I think the main point we are making to the OP is that the location of the actual binary shouldn't be relied upon as the location for the config files....
... If I understand you correctly, you run the program from the root directory thusly: /somedirectory/someother directory/myprogram If that is correct, then...
Hi........Friends i just started Balaguruswami C book.but i want to read book which have examples from basic levels with explaination so anyone can suggest me...
... I am fairly certain that both Linux and Windows provide OS-specific hooks into gathering this information via the OS itself, which is generally the most...
Hi,The problem is i have to code the shared library and every exe will use the functionality provided by this shared library. I need to load the config file...
... And how is this different from the many Linux applications that are built with GTK+ or Qt -- they all use shared libraries in this same manner (and in...
Hi. I guess GTK has a config file which is common across all the applications. Infact the library which i am wanting to write will be loaded by a GTK ...
hi priyanka, You can side-by-side use Let US C by kanetkar for simple and understandable theor+simple programs. Also search on net for small examples. On Mon,...
You can read 'Let us C' by Yashwant Kanetkar for basics. ... have examples from basic levels with explaination so anyone can suggest me some good examples book...
Hi Priyanak! hope you and everybody there will be good and enjoying a good health.We you can use "Let us C" Yashwant kanitkar ... and you can also use herbert ...
Oh okay, for C books reading some books like Let us C and K & R C language and practical C for the introduction to the world of C. Prince Annan Koomson ... ...
... Good grief! Yashwant/Yashavant Kanetkar is one of the WORST authors in existence. Stop recommending him. He recommends/mentions the use of Turbo C, an...
... Bad choice, bad author, second only to Herbert Schildt for misleading beginners: http://avsharath.googlepages.com/TestYourCSkillsErrata.htm -- PJH ...