|
|
Up |
|
|
  |
Author: vincvinc
Date: Apr 4, 2008 08:35
CAn you recomend some tutorial or book for gui programing with ansi c
MUST WORK in DEVCPP
--
comp.lang.c.moderated - moderation address: clcm@ plethora.net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.
|
| |
|
| |
2 Comments |
|
  |
Author: Valery CreuxValery Creux
Date: Apr 4, 2008 08:35
I did post a couple of minutes ago, to the thread "Program hangs with no output"
The reply was intended to the thread "Behavior of fwrite(), fseek(), fflush() if the file gets deleted after being opened."
I resend my answer to the correct thread
If you could delete the incorrect one, I would like a little bit less stupid.
I may have added wrongly "[comp.lang.c.moderated]" to my post subject too.
Regards
Val.
__________________________________________________________
Sent from Yahoo! Mail.
A Smarter Inbox http://uk.docs.yahoo.com/nowyoucan.html
--
comp.lang.c.moderated - moderation address: clcm@ plethora.net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.
|
| |
|
| |
no comments
|
|
  |
Author: David GivenDavid Given
Date: Apr 1, 2008 10:17
Okay, I've been staring at this for hours now, and I've no idea what's
going wrong. I'm pretty sure I'm doing everything right --- everything
here is pretty straightforward C89, and the algorithms are dead simple,
but it simply hangs solid using all the CPU about half-way through. It's
not just slow --- I've let it run for a while and nothing whatsoever
happens. Any suggestions?
(I should probably get my CPU fan looked at, too. It got awfully hot
during that long run. I'm sure I can smell something burning...)
#include
#include
/* WARNING: Do not run this program in a virtualised or emulated
* environment! It's probably wise to turn your virtual memory off, too.
* Real hardware only! Debuggers are RIGHT OUT. YOU HAVE BEEN WARNED. */
/* Structures used to define our layout. Note the careful use of
* volatile; we don't want the compiler optimising away part of the
* invocation. */
|
| Show full article (5.32Kb) |
|
6 Comments |
|
  |
Author: AdityaAditya
Date: Apr 1, 2008 10:16
Hi
I am using Red Hat linux 9 and gcc 3.4.
I am writing an application in C with file handling. The application
opens a file(creates it at run time) using fopen() in binary write
mode. The file is open until the application exits.
The application starts and opens(creates) a file, and waits for an
input to be written to the file.
I delete the file using rm -f as soon as the application
starts before I give it an input to the application(just to clarify, I
delete it from a different terminal, without stopping the application
to wait for an input).
Now I give the input and debug through the application, I find that
the fseek(), fwrite(), fflush() calls in the application for writing
to the file do not throw error even though the file is not existant.
I cannot understand, where is that data written. If it is wriiten to
the buffer, then fflush() should have reported error. But it also
succeeds.
Please, help me in clarifying the point where I am incorrect.
|
| Show full article (1.21Kb) |
|
9 Comments |
|
  |
|
|
  |
Author: Steve SummitSteve Summit
Date: Apr 1, 2008 03:00
Archive-name: C-faq/toc
Comp-lang-c-archive-name: C-FAQ-list.toc
URL: http://www.eskimo.com/~scs/C-faq/top.html
[Last modified July 3, 2004 by scs.]
This article is a table of contents for the comp.lang.c frequently-asked
questions (FAQ) list, listing the questions which the abridged and full
versions of the FAQ list answer. (Both lists answer all questions; the
wordings of the questions in this article are taken from the abridged
list.)
If you have only just come across this article, you will naturally be
wondering where the lists which it indexes can be found. The unabridged
version is normally posted to comp.lang.c on the first of...
|
| Show full article (30.21Kb) |
|
no comments
|
|
|
|
|