I have verified using yum that I have the most uptodate glut, freeglut, freeglut-devel etc., yet when I compile Example 2-6 from the Red Book at http://www.glprogramming.com/red/chapter02.html#name16, I get a window that is too small for the program output, includes display from other windows, and will not redraw
I have a small program that reads stdin from a pipe using fgets. Now fgets blocks for the first line but after that it will not block.
THE CODE, my_echo.c -
int main(int argc, char **argv)
{ char buf [2000] ;
char* pc ;
printf("hello\n") ;
while (1)
{ buf[0] = (char) 0 ;
Hello,
I am wanting to write a program that runs a program or command-line. Is there are way of making a program that activates a command-line (for example executing 'ps -a -f' or '/home/shared/fah').
In addition to that, I want the program to do a 'ps -a -f' and put the results in a buff, how could I do this.
Cheers, thanks for the help in advanced,
I'm just a desktop end user; On line banking, email, Youtube, IM, music, etc. The regular stuff. Can I get rid of Python? I don't program anything. Don't plan on it. Never gave it even a fleeting thought. Do I need it?
Does any other program or app depend on Python? Can I make a clean sweep of it? And if I can, what's the best way of doing it?
Hi guys
Here I am with yet another problem. This time what I am trying to do is to pass an argument to the standard input stream of a child process.
I mean I create two programs .. first one invokes the other.
second one contains something like
I was windering, if you are writing a C program, I don't think you are supposed to commit the .o files and executables. How can you test your program without making a copy outside the git working dir?
Hello All.
I got a simple question, but Google has not assisted me in this query.
I am using "if" to force a word under the condition that the first letter of that word must be a letter of the alphabet, regardless of capitalization, using the " "" = "" " syntax.
Like so:
Hi, as i understand c doesnot perform bound checking , and any acess of previous index will just get the prev indexed mem contents and same for beyond index.
main()
{
int y = 98;
int a[5]={11,12,13,14,15};
int z = 541;
printf("a[0]=%d a[4]=%d\n",a[0], a[4]);
printf("a[-1]=%d\n",a[-1]);
Published at LXer:
After the program is finished searching and comparing between DNS it will give you the results including the fastest and nearest DNS in your area.