Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged C

0 votes
616 views
1 answer
    Simple question, When i use fread: fread(ArrayA, sizeof(Reg), sizeBlock, fp); My file pointer, fp is moved ahead? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
534 views
1 answer
    I recently came across the strict aliasing rule, but I'm having trouble understanding how to use void * to perform ... of the void * in C99? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
390 views
1 answer
    I use a byte to store some flag like 10101010, and I would like to know how to verify that a specific bit is at 1 or 0. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
283 views
1 answer
    I don't know why I'm having a hard time finding this, but I'm looking at some linux code where we' ... such that the select() statement returns? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
501 views
1 answer
    I have used a static global variable and a static volatile variable in file scope, both are updated by an ... appreciable. Thanks in advance.. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
406 views
1 answer
    I create a thread and I put it into an infinite loop. I get memory leaks when checking the code with valgrind. ... th) but I still get leaks. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
323 views
1 answer
    user/include/linux/list.h this declaration: #define list_entry(ptr, type, member) ((type *)((char *)(ptr) - ... little bit stuck with this one. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
450 views
1 answer
    All the initialized global/static variables will go to initialized data section. All the uninitialized global/static ... will be stored? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
797 views
1 answer
    It's said that the "leave" instruction is similar to: movl %ebp, %esp popl %ebp I understand the movl %ebp, ... purpose of the popl %ebp code? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
495 views
1 answer
    I'm trying to fix two warnings when compiling a specific program using GCC. The warnings are: warning: ... suitable union for this case? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
269 views
1 answer
    When we use malloc() to allocate memory, should we give the size which is in power of two? Or we just ... now? Kindly explain it. Thanks See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
379 views
1 answer
    I am supposed to get an input line that can be in of any of the following formats: There must be space between ... to work. I use strict C89. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
526 views
1 answer
    I used the fflush() in Linux GCC but it did not work. Are there any alternatives for that function? Here ... ? Is there an alternative function? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
836 views
1 answer
    I am trying to get and set the IP address using the IOCTL interface on Linux. I am successfully able to get ... , SIOCSIFADDR, (char *)&ifr); See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
498 views
1 answer
    I tried the following code #include <stdio.h> int main(void) { typedef static int sint; sint i = 10; return 0; ... ? or Where am I going wrong?! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
762 views
1 answer
    I have started working with dirent.h library and I came across a very useful member of "struct dirent" structer ... are they used for? Regards See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
783 views
1 answer
    I have here char text[60]; Then I do in an if: if(number == 2) text = "awesome"; else text = " ... said expression must be a modifiable L-value. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
360 views
1 answer
    Dynamic integer will be any number from 0 to 150. i.e. - number returns 41, need to return 50. If number is ... way to achieve this? Thank You, See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
702 views
1 answer
    I have a requirement for firmware upgrade. I am planning to use USB DFU class. But command for firmware upgrade ... we jump to System Memory? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
390 views
1 answer
    I was just wondering about the functions fopen, fclose, socket and closesocket. When calling fopen or opening a ... and sending the data. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
296 views
1 answer
    Okay, until this morning I was thoroughly confused between these terms. I guess I have got the difference, ... in binary unreadable form? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
325 views
1 answer
    I'm having a hard time figuring this problem out - I am trying to write a program that will interact ... greatly appreciated. Thanks; ~Robert See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
325 views
1 answer
    Apparently the following function prototypes are valid in C99 and C11: void foo(int a[const *]); void bar( ... are they just syntactic sugar? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
460 views
1 answer
    C1x has become ISO/IEC 9899:2011 aka C11. Does anyone know what changes (if any) there are in the ... the DC minutes should cover things. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
466 views
1 answer
    Am new to multi threaded/processs programming. So here's what I need to clarify. Process A code ... mutexes, threads and processes? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
468 views
1 answer
    How does the compiler (e.g. GCC) allocates const and static const variable, as in, where would it reside? In data memory or program memory? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
348 views
1 answer
    Hi I have the following program to check the send buffer size for a UDP socket. However, I the return value ... or how to interpret the output? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
468 views
1 answer
    I've seen a lot of questions on this but I'm going to ask the question differently without specific code. Is ... , which isn't very helpful. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...