Your program so far needs stdio.h, which you'd include at the top of your file like
As for whether your program does what you think it does, I have no idea what you think it does. Right now it just fills the terminal with "Display this statement in 5 row 5 column in disk every time". What do you mean by 'row 5 column 5 in disk'? What do you mean 'every time'?
But, i need to display this "hi" in same place in screen(console output)
output must be:
r5c1c2c3c4c5c6
................h i (when i press ctrl+c to terminate infinite loop)
In short, i want to overwrite "hi".
Thanks & Regards
Venkat Gopu
The \r character will send the cursor back to the beginning of the line without moving it down. (It doesn't clear the line, either.) If you're being given instructions to go a specific line though, this isn't sufficient, since printf can't go anywhere but across or down. You need to somehow tell the terminal what to do. You do this with ANSI escape sequences, which means printing the ESC character followed by a little bit of data. Here's two simple ones.
This isn't guaranteed to work in all terminals in all circumstances. (I can't think of a modern UNIX terminal it won't work in, but Windows certainly won't like it.)
Hello.
I like Linux and C programming language. Allways wanted to understand kernel and become a Linux system programmer. And I also like Objective-C and iOS. These two programming areas have relations:
1. Linux and iOS are UNIX-like systems, POSIX compliant.
2. It is useful to know C language... (2 Replies)
Hi,
I have been working on Sun Solaris since a long time. Recently I got to work on RH Linux. My Linux version details are:
Linux 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
I have a simple command in my shell script:
export BKPTAG=`date... (3 Replies)
Hi friends!
I am new be in Linux system programing. Can you help me to get running processes statistics (pid, uid, %cpu, %mem, pri, ni) without using any commands like TOP, PS.
Can you tell me any system call available to get %cpu only or %mem only?
Even i include... (2 Replies)
can you guys please let me know what are some of the c programming environment program? you know the ones with checking syntax and auto indentation and such..
dont want to just use vi (although someone did mention to me that in vim, there are capabilities.. but not sure how)
thanks in advance. (6 Replies)
is it advisible to do Linux Programming in JAVA.. If so, whats the advantage over C++ or C.. Cud anyone also help me out by providing some links in this regard.. Would be highly appreciated.. (1 Reply)
hi
frnds i need help on linux programming as well as how to configure linux.
if u feel free than plz forward me the mail so that i can go through.
email removed
thanx
regards
:)
vishwa pratap singh (1 Reply)
Hello, I am a basic programer from back in the 80's/90's. I moved on to visual basic and now I want to learn C. I want to eventually program in Linux.
Now, before I get on this band wagon I want to ask a few questions to make sure I am getting started out right.
1. Is C a good language to... (2 Replies)