i cant see that well. i have a eye condition so bear with me if i am wrong. but it seems like you are opening the same file using two different functions at the same time and the error message cant...
Type: Posts; User: cmay
i cant see that well. i have a eye condition so bear with me if i am wrong. but it seems like you are opening the same file using two different functions at the same time and the error message cant...
it does not i guess. hence the attempt to get back to bed to avoid explaining why i did not read the tread before i posted properly .
#ifdef _WIN32
#define OS "windows\n"
#include...
if i did not have the flu i think i might have waited with posting until i was sure i understood the question right. this works on linux. i think there is a mentioning of this is the k&r book. all...
this should work on all unix and unix-likes. i dont know if windows has something similar to this.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include...
i use this template from here . Example of Getopt - The GNU C Library there is a long option also.
this little program is how i would have done it as a hello world program but i am not sure if...
thanks.
i completely forgot the break statements. it was just a rather hello world like project i started out last night so i just posted what i got from before i went to bed.
sorry the...
i would like to ask if this is the right way to use malloc or if i am doing anything wrong.
i just turned the page about structures a few days ago in the book i am using.
thanks for the time to...
you could try something like this.
its been very long since i touched c++ so i hope its correct.
#include <cstdlib>
#include <ctime>
#include <iostream>
using namespace std;
thanks.
i know perl would be better. i just learning c right now as the first language so i wont jump over to perl right now.
later when i feel i can master c a lot better i plan to learn perl....
HowStuffWorks "How CGI Scripting Works"
this i think was a bit interesting and i would like to get some better tutorials for cgi scripting using c.
anyone knows of good tutorials. ?
thanks...
i only know getopt function from here. Getopt Long Option Example - The GNU C Library
there is a long options example which i linked to.
reason i asked is that i read this book The Practice of Programming - Google Bøger
and there is lots of examples of idioms but the book is getting a bit old. i bought the book second hand and i...
i only know a few common idioms.
how many commonly used idioms are there in c.
these are the ones i can think of right now.
while((c=getchar()) != EOF )
for(i=1;i < argc;i++)
I need some header files from Borland Turbo C++!!! - C and C++ - Forums at ProgrammersHeaven.com
i think its written for the borland turbo c++ compiler. above is a link to a post with same...
i found this article which i think is interesting
Command-Line Options
i am not sure i understand the question exactly but i am in the same stage as you.
last night i could not sleep so i wrote this little program to experiment with the options. i never tried use long...
thanks.
i found all the error codes in linux using cat command and i figure there must be almost identical error codes for solaris and other *nix systems as the error codes should be same as in the...
thanks.
i sometimes use the get opt function so i might as well just use the same message as it gives if an invalid argument is been giving. i did however think there was a standard error code...
hi.
i am learning about error handling as of now and i have a simple question.
when consider this program i made to test the error messages , what error should be used for the initial if no...
i think nonoob answered the question.
i am learning c as a hobby and i study the old unix systems as i find them very interesting so what i do is i get some source code from books or online and i...
exactly one reason why i want to do this.
i have already taken the most simple programs and rewritten them and some of them a couple of times. wc as example i written more than one version of.
...
i found these files and started to study and update /rewrite them to learn from it.
V7/usr/src/cmd/yes.c
i have however a question. i noticed there is no license .no comments, and besides from...
thanks for the time all of you. it means a lot to me to get these answers.
my background for wanting to learn programming is that i have been sick for some years so i dont work anymore and i sit...
ok. thanks for the input.
this statement makes me relax a bit i think. its nice to get ones ambitions put in perspective from those who have a small lifetime of experience.
thanks for your time:)
i think when i can remember and i use regular the whole language with out looking in the books and i know the ins and outs well enough to being able to write a program that i would like to write...