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
434 views
1 answer
    I'm looking for ways to restrict the number of C symbols exported to a Linux static library (archive). I'd like ... both GCC 3 and 4. Thanks! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
228 views
1 answer
    I am writing some code for raspberry pi ARM target on x86 ubuntu machine. I am using the gcc-linaro-armhf ... got correct std headers and libs? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
346 views
1 answer
    I need a way to analyze output file of my GCC compiler for ARM. I am compiling for bare metal and I am quite ... own code is in its own section. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
564 views
1 answer
    In the C language where did they come up with the name atoi for converting a string to an integer? The only ... that doesn't really make sense. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
400 views
1 answer
    For the following code: int (*ptr)[10]; int a[10]={99,1,2,3,4,5,6,7,8,9}; ptr=&a; printf("%d" ... *ptr[1]); It is giving the segmentation fault. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
323 views
1 answer
    In the C language, __FUNCTION__ can be used to get the current function's name. But if I define a function ... related to C99 or something else. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
448 views
1 answer
    When we reallocate memory via realloc(), are the previous contents over-written? I am trying to make a ... it compiler dependent for example? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
566 views
1 answer
    I write a client program based on posix sockets. The program creates multiple threads and is going to lock the server. ... it is and what to do? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
494 views
1 answer
    Can I provide/pass any arguments to signal handler? /* Signal handling */ struct sigaction act; act.sa_handler = ... the API designed this way? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
377 views
1 answer
    I'm following 'Learn C the Hard Way', specifically the chapter on Valgrind. This chapter gives you a deliberately ... this paste for an example. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
278 views
1 answer
    Is it possible to pass a function pointer as an argument to a function in C? If so, how would I declare ... a function pointer as an argument? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
492 views
1 answer
    What can cause a Resource temporarily unavailable error on a socket send() command? The socket is setup as ... for general ideas. Thanks! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
458 views
1 answer
    I am going through an eg pgm to create a make file. http://mrbook.org/tutorials/make/ My folder ... understand to compile this program. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
357 views
1 answer
    I teach a course where students get to ask questions about programming (!): I got this question: Why does the ... 's question better than me. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
349 views
1 answer
    Ignoring padding/alignment issues and given the following struct, what is best way to get and set the value of ... wrong. Cheers for any help See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
282 views
1 answer
    I know everyone hates gotos. In my code, for reasons I have considered and am comfortable with, they provide ... *the_label_pointer; return 0; } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
341 views
1 answer
    I noticed that there was (at least on Mac OS X) both a <string.h> header and a <strings.h> header. ... functions. Is there any reason for this? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
353 views
1 answer
    I am trying to write a sample program to do AES encryption using Openssl. I tried going through Openssl documentation( ... to figure this out... See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
480 views
1 answer
    I am using Bresenham's circle algorithm for fast circle drawing. However, I also want to (at the request of the ... language I am using is C. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
369 views
1 answer
    Can anyone explain to me in simple words what is the difference between texture and surface? I saw it ... deeper into computer graphics stuff. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
434 views
1 answer
    I'm creating a multi-threaded application in C using Linux. I'm unsure whether I should use the POSIX thread ... -level or user-level threads? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
344 views
1 answer
    I'm looking at some code which should be trivial -- but my math is failing me miserably here. Here's a condition ... a number is a power of 2? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
654 views
1 answer
    looking at the linux kernel source, I found this: static struct tty_operations serial_ops = { .open = tiny_open, ... before the variable name? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
272 views
1 answer
    Looking through the scheduler source code (2.6.34, kernel/sched.c), I can see how the "pluggable" schedulers are ... think I've figured it out. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
305 views
1 answer
    I have been trying to understand fork() behavior. This time in a for-loop. Observe the following code: ... 7 children, which is correct? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
354 views
1 answer
    Can anyone explain this behavior of gdb? 900 memset(&new_ckpt_info,'',sizeof(CKPT_INFO)); (gdb) **903 prev_offset = ... set the value of found? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
413 views
1 answer
    Whats the difference between a Null pointer & a Void pointer? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
378 views
1 answer
    When implementing lock-free data structures and timing code it's often necessary to suppress the compiler's optimisations. ... ::: "memory"); See Question&Answers more detail:os...
asked Oct 17, 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

...