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
1.0k views
1 answer
    Here is what i have and I wonder how this works and what it actually does. #define NUM 5 #define FTIMES(x)(x*5) ... and 30. How does it do that? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
925 views
1 answer
    I have struct with padding in char (oops, my bad). I would like to subtract a pointer size. Do you know a ... , or a standard macro for that? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    How can I check if my program's stdout has been redirected to NUL? That way I can avoid outputting data since it ... free to post that as well. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
924 views
1 answer
    I am wondering if someone could set me in the right direction with a problem I am working on. I am trying ... ). Any help would be appreciated! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I have a long program in c over Linux, that gives me segmentation fault after main returns. Its a long program, ... Once again, thank you all. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I have the following code to read an argument from the command line. If the string is 1 character long and a ... of built-in function 'exit' See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
838 views
1 answer
    int main(int argc,char* argv[]); If there's a '' character in A, will it be split into 2 arguments ? . ... A,but there might be someone who can. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
998 views
1 answer
    If I'm reading numbers of type double from stdin, how can I check if the numbers being read are in fact valid ... numbers are in fact a double)? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
803 views
1 answer
    I have created a 2 d array which reads as follows int i,j,lx,ly;// lx,ly are the row and column respectively ... of lx, ly as shown in my code See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    here's a weird thing I found today on Mac OSX. After a fork, which has succeeded, errno is set at ... clue to explain that undesired behavior ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
960 views
1 answer
    Reading this answer which explains the polyglot program on page not found on Stack Overflow I was surprised to read ... (like sizeof operator)? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
965 views
1 answer
    I typed the following program: #include <stdio.h> int main(void) { int a = 3; int b = 42; printf(" ... implementation of C. Thank you very much. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
984 views
1 answer
    I want to parse the $PATH variable of Linux, and then save the directory names that are getting separated with ':' ... strtok(NULL, ":"); } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
916 views
1 answer
    What is the difference between calloc(10,4) and calloc(1,40)? I see this behavior: Thing** things = ( ... take a single argument, like malloc? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
814 views
1 answer
    Here's my setup... /* Bounded Buffer item structure */ struct item { int id; /* string index value */ ... same shmid? Thanks in advance, Z@K! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
888 views
1 answer
    I have a chat client that takes in input in raw terminal mode, but I don't know about handling input in this ... be really great to see. Thanks! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    Okay so I've tried to print and Array and then reverse is using another array But I'm trying to create a For Loop that will ... a[j]); j++; } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
955 views
1 answer
    I was helping someone with their homework and ran into this strange issue. The problem is to write a function ... on here. Thanks in advance! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
923 views
1 answer
    I need to write a tool that can take a C code and put pragmas on top of some functions. Which compiler ... , I would really appreciate it. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I need to implement my shell that handles multiple pipe commands. For example I need to be able to handle this: ls ... ** args; int num_args; }; See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
849 views
1 answer
    I am using UDP socket to send packets and I want to check the TTL field in IP header of received packet. Is ... to work only for RAW socket. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
875 views
1 answer
    I want to store two 32-bit values in a single long int variable. How would you do this on a 32-bit OS using ... ? If so, how is that done? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I want to encode the string "Qui?ones" in a Code 128 bar code. Is it possible to include extended ASCII ... a solution in the C language. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I am attempting to run a simple C project in Eclipse. I have read through every single possible thread about ... something to do with it? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
814 views
1 answer
    Apart from error codes, error strings and logs, are there any other features which can be incorporated in the code ... is going on) at runtime? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
976 views
1 answer
    I want to read text from a text file line by line and do some processing on these lines. I can do all processing ... (float)line); fclose(fp); } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I know that Gdk-Pixbuf supports png and jpg, but I cannot find an exact list of all the completely (or partially ... by gdk-pixbuf. Any help? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
844 views
1 answer
    I have a double which is not necessarily positive but usually. It can be 0.xxxx000 or X.xxxx00000 or XX.00000 or ... this, any help? This is C. 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

...