Search Results

Search: Posts Made By: enuenu
Forum: Programming 06-17-2007
234,894
Posted By enuenu
Thanks, I am still investigating (this and much...
Thanks, I am still investigating (this and much more).
Forum: Programming 06-11-2007
5,689
Posted By enuenu
So it seems it is the way you open the file that...
So it seems it is the way you open the file that determines whether the new stuff will overwrite what is there or be appended to it.
I have been using;
FILE *fp=fopen(filename,"w");
fputc('q',fp);...
Forum: Programming 06-11-2007
5,689
Posted By enuenu
append character to a file
Hi,
fputc() will overwrite from the beginning of the target file.
How would I append characters to the target file's end instead?
Thanks.
1,824
Posted By enuenu
TclTk forum
Does anyone know of a good TclTk forum?
Forum: Programming 06-02-2007
3,590
Posted By enuenu
Thanks. I will check it out.
Thanks. I will check it out.
Forum: Programming 06-02-2007
3,590
Posted By enuenu
positioning cursor
I am using curses.h and signals.h to control output to screen. My code displays an unchanging prompt that waits for user input. Meanwhile alarm signals are being generated that cause other ancillary...
Forum: Programming 06-02-2007
234,894
Posted By enuenu
Thanks for the tips.
Thanks for the tips.
Forum: Programming 06-02-2007
234,894
Posted By enuenu
exit(0) versus exit(1)
What is the difference between using exit(0) and exit(1) to exit a program? Which should I use?
Forum: Programming 06-02-2007
11,188
Posted By enuenu
I had an alarm signal interrupting the sleep()...
I had an alarm signal interrupting the sleep() function.
Forum: Programming 05-29-2007
11,188
Posted By enuenu
Sleep() not working
I have a function that quits a program when <ctrl>c is entered as per following code;
void quitter (void)
{
clear ();
mvprintw (QUITTER_ROW, QUITTER_COL, "Quitting...");
refresh ();
...
Forum: Programming 05-29-2007
40,205
Posted By enuenu
Could you please explain the purpose of the...
Could you please explain the purpose of the following statement;

Why does the program contain no prototype of this function?
Further, I do not understand what it does or how. Thanks.
Forum: Programming 05-29-2007
4,006
Posted By enuenu
Thanks for your effort. I must admit your code is...
Thanks for your effort. I must admit your code is a bit beyond my capabilities at the moment, however I will examine it and learn. I was hoping I could just slot a getchar() statement in somewhere...
Forum: Programming 05-29-2007
4,006
Posted By enuenu
Multi threading?
I am not sure if multi threading is the correct term, but here is what I am trying to do. I have a while loop that displays the number 1, pauses, displays the number 2, pauses , displays the number 3...
Forum: Programming 05-29-2007
6,334
Posted By enuenu
Thanks very much, problem solved.
Thanks very much, problem solved.
Forum: Programming 05-28-2007
40,205
Posted By enuenu
Thanks again. I will sift through your code....
Thanks again. I will sift through your code. There is much for me to learn in there.
Forum: Programming 05-28-2007
6,334
Posted By enuenu
Command line args
My program usage takes the form for example;
$ theApp 2 "one or more words"

i.e. 3 command line arguments; application name, an integer, some text

My code includes the following 4 lines:
...
Forum: Programming 05-28-2007
40,205
Posted By enuenu
OK thanks, I will look into this issue.
OK thanks, I will look into this issue.
Forum: Programming 05-28-2007
4,722
Posted By enuenu
Thanks a lot. I am a beginner as you can see. I...
Thanks a lot. I am a beginner as you can see. I am transitioning from fundamental C++ to fundamental C.
Forum: Programming 05-28-2007
40,205
Posted By enuenu
Thanks very much to all. I have a project in mind...
Thanks very much to all. I have a project in mind and this forms a piece of it. I will forge ahead now. You have helped me understand how to implement alarms and signals.
Forum: Programming 05-28-2007
4,722
Posted By enuenu
Thanks again. Further to this, why is "void" used...
Thanks again. Further to this, why is "void" used as a parameter in a function that takes no arguments, i.e.
int main (void)

I see this a bit in C (I started out learning C++) , why not just use...
Forum: Programming 05-28-2007
40,205
Posted By enuenu
Thanks a lot. matrixmadhan your code almost...
Thanks a lot. matrixmadhan your code almost works perfectly. The only thing it doesn't do is loop infinitely between "The ALARM...." and "Snoozing.....".

It starts by displaying "Snoozing....."...
Forum: Programming 05-28-2007
40,205
Posted By enuenu
Basic signal and alarm usage
I am trying to write a program that will;
1) Show the message "Snoozing now...zzzz" on the screen for 5 seconds
2) Then in the same position show the message "The ALARM is going off now!" for 5...
Forum: Programming 05-27-2007
4,722
Posted By enuenu
Thanks very much. One question, does main() have...
Thanks very much. One question, does main() have to have a return type?
I now have
int main()
could this just have easily been
void main()
?
I think this is what I originally intended.
Forum: Programming 05-27-2007
4,722
Posted By enuenu
Basic multi module problem
I am trying to learn how to use multiple modules and hearder files. I have tried a little experiment but cannot get it to work. Here is my code and compilation attempt. Any help with finding my...
2
2,027
Posted By enuenu
[me@myisp me]$ uname -a Linux myisp.net.au...
[me@myisp me]$ uname -a
Linux myisp.net.au 2.6.3-7mdk #1 Wed Mar 17 15:56:42 CET 2004 i686 unknown unknown GNU/Linux

I use Mandrake 10 Linux.
Showing results 1 to 25 of 39

 
All times are GMT -4. The time now is 06:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy