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
523 views
1 answer
    If I have enums like: enum EnumA { stuffA = 0 }; enum enumAA { stuffA = 1 }; What happens here when you refer ... 't seem to be the case in C. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
407 views
1 answer
    With gcc 4.4.5, I have a warning with the following code. char *f(void) { char c; return &c; } But, ... , but can gcc warn about such code ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
590 views
1 answer
    How can I detect parent process death in Linux OS? If in parent process called fork(), that create child ... can detect parent process' death? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
485 views
1 answer
    I've recently been working on a system that needs to store and load large quantities of data, including single- ... faster and/or more reliable. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
607 views
1 answer
    I'm trying to write a lex/yacc grammar for C11 based off of N1570. Most of my grammar is copied ... reduce using rule 156 (type_qualifier) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
666 views
1 answer
    Is it possible to tell valgrind to ignore some set of libraries? Specifically glibc libraries.. Actual Problem: I ... no luck. Any suggestions? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
826 views
1 answer
    If do the next: int* array = malloc(10 * sizeof(int)); and them I use realloc: array = realloc(array, 5 * ... and only it), can it return NULL? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
643 views
1 answer
    I'm on a system with no access to disk. My C program has in memory the contents of a valid, small ... something along those lines? Thanks. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    when I try to compile fprintf(stderr,Usage) on Ubuntu I got this error: error: format not a string literal ... successfully. Anyone has an idea? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
641 views
1 answer
    I use opendir() and readdir() to display the file names in a directory. But they are disordered. How can I sort them? The language is C. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
621 views
1 answer
    I have a string that has ints and I'm trying to get all the ints into another array. When sscanf fails to ... Any idea what's wrong? Thanks. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
578 views
1 answer
    I am just experimenting , but want to use Dart as a scripting language for a high performance simulation application ... dart-vm/tree/master/src See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
703 views
1 answer
    If I write the following program, then there is no beep sound on running the code. #include <stdio.h> int main ... beep sound using C program ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
513 views
1 answer
    Consider that you want to calculate the low 128-bits of the result of multiplying a 64-bit and 128-bit ... hence claim "zero" multiplications). See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
777 views
1 answer
    Here is my dead simple dummy code: #include <errno.h> int main(void) { errno_t e; return 0; } Which ... standard is specified for the compiler? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
622 views
1 answer
    Please consider the following fork()/SIGCHLD pseudo-code. // main program excerpt for (;;) { if ( ... please let me know! Thanks. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
757 views
1 answer
    I am using the struct timespec structure and here it is: struct timespec { time_t tv_sec; /* Seconds */ long tv_nsec ... not find it in time.h. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
466 views
1 answer
    The following obfuscated C code prints the words to the "12 days of Xmas". I was trying to puzzle out how it ... .vpbks,fxntdCeghiry"),a+1);} See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
590 views
1 answer
    Is it possible to change a process parent? ex: parent A has Child B can I make the parent of B is the Init process without killing A? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
679 views
1 answer
    I need to add seconds to a date. For example, if I have a date such as 2009127000000, I need to add ... 20091231235957. Is this possible in C? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
531 views
1 answer
    Say I have the following program #include <stdio.h> #include <stdlib.h> int main(void) { int * i; if ( ... of this code during its termination? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
707 views
1 answer
    There are two related C standard rules: C99 standard, 6.3.2.3: A pointer to void may be converted ... my question is about standard compliance) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
759 views
1 answer
    Since a quick Google search did not find anything, I will try to ask here (since many people involved in ... set is simply poorly supported? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
643 views
1 answer
    Is Android POSIX-compatible? I know it uses the Linux kernel, but I'm not sure if that means it's ... Android without needing any code-changes? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
652 views
1 answer
    I can't see any alloca.h equivalent in Visual C 2010. How can one perform stack allocation in Visual C on Windows? I miss the function alloca. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
647 views
1 answer
    In C++: assert( std::is_same<int , int>::value ); // does not compile assert( (std::is_same<int , int ... ); // compiles Can anyone explain why? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
608 views
1 answer
    I'm on Linux and I am forking/execing a new process out of my C spawn application. Is it possible to also ... they all have the same name. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
547 views
1 answer
    Many times I see in open source code that a call to a C function is cast to void. For example, in the source ... ""); Why is this good practice? 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

...