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
451 views
1 answer
    gcc 4.6.2 c89 Is there any standard regex expression that can be used to extract the IP address from a ... ; Many thanks for any suggestions, See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
515 views
1 answer
    I am looking for creating child processes for which I can control their order of processing. Simple example: Parent ... but it's not pretty See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
454 views
1 answer
    i am trying to find the select() source code (linux, i386 arch) in the glibc source code, but i cannot find ... to the select() source code ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
308 views
1 answer
    I am trying to make a multi-threaded server-client file transfer system in C. There are clients which will ... ); exit(EXIT_SUCCESS); } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
397 views
1 answer
    #include <stdio.h> int main() { char C, B; int x; printf("What comes after G "); scanf("%c", &C); ... and %c Can you please explain this to me? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
573 views
1 answer
    I am working on a program that needs to convert a 32-bit number into a decimal number. The number that I get ... binary. I have to use formula. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
674 views
1 answer
    When I do a left shift of a hex I get -1 as output with the following code: unsigned int i,j=0; ... . Can someone explain the results above? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
407 views
1 answer
    I am used to program having the file browser on the left of the code and the outline on the right. However, ... comes from eclipse)? Thanks, DMR See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
355 views
1 answer
    Can anybody give me a hand trying to implement the following server and client?: The server: #include <stdlib ... solutions for this problem? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
548 views
1 answer
    I am new to C and recently ran into some trouble with mismatching data types and their memory allocation. I am writing a ... +) { // do stuff } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
337 views
1 answer
    I'm trying to write a C99 program and I have an array of strings implicitly defined as such: char *stuff[] = ... holds an array of 9 elements)? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
344 views
1 answer
    I see this in Wikipedia log 224 = 7.22. I have no idea why we should calculate 2^24 and why we should ... ...I really really need your help. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
446 views
1 answer
    Here's a simple example of a program that concatenates two strings. #include <stdio.h> void strcat(char ... not considered as modifying? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
385 views
1 answer
    I am implementing an SPI driver for an accelerometer. The SPI part is done but I can't read values from ... closed What am I doing wrong? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
416 views
1 answer
    Take a look at this code: #include <stdio.h> #define _ONE "one" #define _TWO_AND ", two and " int main() { const ... that way, or is it a bug? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
338 views
1 answer
    I wrote some code for initializing the IDT, which stores 32-bit addresses in two non-adjacent 16-bit ... linking time is actually infeasible. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
332 views
1 answer
    I'm having some hard time with synchronising N child process waiting each one of them to arrive at some specific point ... of stuff... 10 times See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
534 views
1 answer
    I have a set of includes that reside in a far off directory meaning that including them requires a long ... pre-processor suitable for this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
828 views
1 answer
    I have two processes on Linux, A & B. I want to share the file descriptor from process A with ... @OliCharlesworth. Please close this question. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
436 views
1 answer
    Consider the following simple C program. //C test #include<stdio.h> int main() { int a, b, c; printf(" ... fgets and sscanf or even strtol ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
580 views
1 answer
    the code is as follows: #include <stdio.h> main() { int m=123; int n = 1234; short int a; a=~0; if((a ... affect the value of m ? Thanks a lot ! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
449 views
1 answer
    In a software baseline I am maintaining, there are 150 statements spread out amongst various C applications ... application which returned it? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
479 views
1 answer
    I am currently trying to parse UnicodeData.txt with this format: ftp://ftp.unicode.org/Public/3.0-Update/UnicodeData ... making my own scanf()? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
454 views
1 answer
    I saw some code related to realloc() on some sites as below. int *p = (int *)malloc(sizeof(int) * 10); ... by realloc() to the same pointer? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
526 views
1 answer
    I'm trying to learn more about memory allocation, and so I wrote some test code below to see what would ... contexts (suppressed: 2 from 2) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
570 views
1 answer
    I would like to do the following inside a C program on a Linux os: Create a PIPE using a syscall (or 2 ... doing this for both input and output? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
420 views
1 answer
    Hi:) what i'm trying to do is write a simple program to expand from shortest entry for example a-z or 0-9 ... (2) 01234 Thanks for advance:) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
397 views
1 answer
    I realize that any such function is likely to be non standard, but that's ok for my use case. Basically, I ... at. Does such a thing exist? 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

...