Post Created date
Help with bit function for exFAT
Fianawarrior wrote: It worked with that statement, I just replaced it to be neater.   No, it did not work. As I said above, you original version is a no-op. 
Monday, 20 September 2021 - 15:41
Comparing piece of code with and without if statement
joneewheelock wrote: In this code, if I comment part1 and uncomment part2, the code size is 4 bytes more than the one if part2 is commented and part1 is uncommented. I was...
Monday, 20 September 2021 - 05:21
Help with bit function for exFAT
Fianawarrior wrote: When I came back yesterday I realised I had forgot to multiply the sector by:   ((sector * 512) * 8)!!!!!!!   ... and still quietly replaced the...
Monday, 20 September 2021 - 05:18
Help with bit function for exFAT
Fianawarrior wrote: // reset bitmap to start of sector bitMap = (unsigned char *)&bitMap[0];   What on Earth is that supposed to mean? How is it going to "...
Tuesday, 14 September 2021 - 01:44
Arrow operator -> and (x*var).y
hmsEdinburgh wrote: Anyone can explain what these code do? what does the -> means   In modern C `a->b` is equivalent to `(*a).b`. Kindergarten-grade questions...
Thursday, 9 September 2021 - 14:36
Double fclose
mtr_1 wrote:Does anyone know what doing an fclose() on a file which has already been fclose()'d does?   It leads to undefined behavior.   mtr_1 wrote:Is the second one...
Monday, 30 August 2021 - 19:26
short and long qualifier
ansh11 wrote:There are four data types in c language int, char, float and double.   No.   There are five standard signed integer types in C: `signed char`, `short int...
Sunday, 29 August 2021 - 09:27
struct clobbering members.
Simonetta wrote: I'm never comfortable with using a reserved keyword like 'type' as a variable name, especially one at the last position in the structure.    Since when...
Saturday, 28 August 2021 - 21:23
struct clobbering members.
That just makes no sense whatsoever. You have two global variables  `padData` with the same name and different types. This is a useless mess. What are you trying to...
Saturday, 28 August 2021 - 17:37
struct clobbering members.
S_K_U_N_X wrote:then its global and I use it in many files   Pedantically speaking, you can't declare a global variable like that. Some C compilers might allow this as an...
Saturday, 28 August 2021 - 15:17
Creating event queue with event payload
phyrexian wrote:1. What is lifetime of the anonymous events structures I create?   These are called compound literals. Compound literals used in local scope have the same...
Tuesday, 24 August 2021 - 17:23
What's best way to learn storage class in c language
rahulk7 wrote:Storage class define lifetime and scope of variable.   Storage class specifier determines storage duration and linkage of a variable, plus a bunch of...
Sunday, 22 August 2021 - 00:26

Pages