Hello!
The last month I am looking all over the internet for a tutorial on creating a simple scripting language with flow control (for, while, if) using bison and flex (or yacc and lex).
Can...
Type: Posts; User: Crashgr
Hello!
The last month I am looking all over the internet for a tutorial on creating a simple scripting language with flow control (for, while, if) using bison and flex (or yacc and lex).
Can...
Thank you all for your replies!! ;)
There must be an easier way.... What bash shell does to retrieve my login name? It surely doesn't use the $USER variable.
Perspective, thank you for your answer, however I believe that $USER is not safe at all. any user can change the value of this variable.
As I said, I'm looking for a portable and secure way to...
Hello!!
What is the best way to get the username of the logged in user? I used getlogin() and it worked fine with these distros :
Solaris 8
Suse 9
It also worked perfectly at cygwin....
Hello!!
I'm looking for a function which accepts a string as input and returns the number of the tokens of the string. Is there any ready function for this? If not, what is the correct algorithm...
Thank you jlou for your answer!
I edited the code and now it is correct. You guest right!! Code got lost when I moved it to my post! :)
I tried removing the ignore and let the getline read the...
Hello!!
I'm trying to write a file parser. I have just began and I stuck.
Let's assume that I have a file called 'profile.txt'. This file contains :
"
hello
grrrrr!! I'm stupid!! Thank you jlou!! That was the problem!! And I swear that, this was the first thing i checked!! ;) Thank you again.
I have this problem in my program! I need a function that fixes the input. If the string has white characters at the beginning. For example : if s=" hello" , i want to fix the string to be :...