Description:
The C programming language. (Moderated)
|
|
|
C Multithreading variable memorization
|
| |
...Is there an outline?Does it depends on compiler or SO?How is the memory divided?
Thank you for your replay.
...
C (in common with most other programming languages) does bot specify how things are done only what the results shall be. An implementation is free to provide storage for variables in any way that it sees fit. A... more »
|
|
Free "Practical Design Patterns in C" book.
|
| |
[link]
-- comp.lang.c.moderated - moderation address: c...@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.
|
|
why I got this answer?
|
| |
...
n 'evaporates' after you hit the return
the value returned in p points to where n used to be.
...
999 got put where n used to be.
-- ⚂⚃ 100% natural
-- comp.lang.c.moderated - moderation address: c...@plethora.net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,... more »
|
|
Why sizeof(main) = 1?
|
| |
On Fri, 4 Jan 2013 18:14:52 -0600 (CST), Myth__Buster
...
...
sizeof(char) is always 1, not just usually. Why do you think
sizeof(char) being 1 has any effect on sizeof(void*) or sizeof(char*)?
...
This second argument contains a constraint violation and therefore
requires a diagnostic. (The sizeof operator cannot be applied to an... more »
|
|
Call for Papers: ACCU 2013 conference
|
| |
ACCU invites you to propose a session for its leading software development conference.
The conference will be held in Bristol, England, from the 9th to the 13th April inclusive.
Our opening keynote speakers will be Eben Upton, Mr Raspberry Pi.
To propose a session please email the following information to confere...@accu.org... more »
|
|
distributing data across a structure (new to c please help)
|
| |
the ulimate goal is to read the MZ header from a binary windows pe file, which is simple enough. anyway the theory goes (and this is the bit i dont understand im new to c programming) i memcpy the data from the file ACROSS a struct. is this possible? i dont understand how to initialise and manipulate the struct. can i copy a set of data that is 16bytes long, to a struct with two 8byte children and will memcpy then distribute the data for me if i pass it pointers?... more »
|
|
Help with C
|
| |
Hi. To understand C better, I am working my way through The C Programming Language (a.k.a K and R). I have some questions about how to implement some of the solutions to the problems presented in the text. I have The C Answer Book, too. My questions also relate to that book's suggested implementations. There are some minor variations between my solutions and the book's, which I would like to understand better.... more »
|
|
fgets - design deficiency: no efficient way of finding last character read
|
| |
Hello,
The last character read from fgets(buf, sizeof(buf), inputstream) is:
'\n'
OR
any character x, when no '\n' was encountered in sizeof(buf)-1
consecutive chars, or when x is the last char of the inputstream
***How can one EFFICIENTLY determine if the last character is '\n'??
"Efficiently" means: don't use strlen!!!... more »
|
|
which one is faster?
|
| |
on a 32bit system.
...struct TestStruct
{
unsigned short a;
unsigned short b;
unsigned int c;
...struct TestStruct t;
t.a = 0; //step 1
t.b = 1; //step 2
t.c = 2; //step 3
Questing is : Are these 3 steps having the same perfomance time?
Sorry for my poor english.... more »
|
|
|