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
642 views
1 answer
    There seems to be a lot of confusion regarding the purpose of the two arguments 'size' and 'count' in fwrite() ... do not suffice in this case. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
572 views
1 answer
    I have an array defined in a file and in another I have to use it, for e.g- /* a.c - defines an ... to array subscript in a.c Thanks in advance See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
637 views
1 answer
    This question follows this previous question about the definedness of memcpy(0, 0, 0), which has been conclusively ... 9 relies on to optimize. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I can't pass strings starting with # as command-line arguments. Here is a simple test: #include <stdio.h> ... Language and C Primer Plus. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
733 views
1 answer
    In a C macro, is it possible to capitalize a pasted-in token? For example, I currently have the following macro ... or TEST(TEST1) Thanks, Ryan See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
634 views
1 answer
    I am writing a very small code just scanf and printf. I am reading a double value and printing it. The ... %f in printf it works properly. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
688 views
1 answer
    I'm writing a program that calculates the greatest common denominator of two numbers, but i'm getting problem with ... = malloc(sizeof(int)); See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
612 views
1 answer
    typedef struct node { int data; struct node *next; } nodeL; Assuming I want to translate the above declaration ... ? Also, what about alignment? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
602 views
1 answer
    I am writing a UART driver. I came across the two functions in the chapter 14.Linux Device Model. int ... device_driver()?. Please explain. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
587 views
1 answer
    Linux Kernel version 3.2 and further have a capability called cross memory attach. Here is the link to it. ... process from the child process? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
446 views
1 answer
    This is my code: #include <stdio.h> #include <stdlib.h> #include <string.h> void getinfo(unsigned int a, unsigned int ... ). How can i fix it? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
530 views
1 answer
    How can I disable OS-level keyboard shortcuts (e.g. Alt-Tab, Ctrl-Alt-Left/Right, etc.) on a [Ubuntu] ... looking for a bit more hand-holding. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
594 views
1 answer
    I've been looking for a way to convert a string (in Epoch time) into a date. Basically, I need to take ... ctime() on it. Worked perfectly! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
527 views
1 answer
    #include<stdio.h> int main() { int arr[] = {10, 20, 30, 40, 50, 60}; int *ptr1 = arr; int * ... printf() statement, what will be the output? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
694 views
1 answer
    I'm prompting the user to enter the length of an array, initializing a char[] array with this input, and then prompting ... 0; } // end of main See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
566 views
1 answer
    I am trying to learn gstreamer appsrc plugin to play AV from a transport stream demultiplexer that I wrote (I ... and it didn't help See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
560 views
1 answer
    Let's say I have a char pointer: char * cp; int val2 = 2; cp = &val2; *cp = 1234; What will ... store the correct value across several bytes? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
488 views
1 answer
    I'm writing a wrapper layer to be used with mingw which provides the application with a virtual UTF-8 environment. ... I haven't thought of. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
620 views
1 answer
    My database provides a textfile with opening and closing " to delimiter formulas. The set of formulas is very limited and ... ); } return e; } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
548 views
1 answer
    I want to convert a string into a signed int. Following is the requirement. I have stored hex value as a string in ... . So what I should I do? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
507 views
1 answer
    I know only one case when arrays passed to a function they decay into a pointer.Can anybody elaborate all ... which arrays decay to pointers. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
506 views
1 answer
    Backstory I'm porting the QuickCheck unit test framework to C (see the working code ... a_string, a_struct_requiring_its_own_printf_function); See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
736 views
1 answer
    I want to change keyboard layout in Linux by programming, What X11's API function does this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
525 views
1 answer
    I was trying to understand this implementation in C of the Dijkstra algorithm and at the same time modify it so that ... at 0 and go until <? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
446 views
1 answer
    By contrast, if multiple instances of a standard signal are delivered while that signal is currently blocked, then ... 3 questions here.. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
466 views
1 answer
    Consider the following code: writer.c mkfifo("/tmp/myfifo", 0660); int fd = open("/tmp/myfifo", O_WRONLY); char ... way to go about it? Thanks. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
533 views
1 answer
    I have an enumeration, which contains hundreds of entries. I will be getting the value of the enumeration as a ... any way to avoid this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I'm newbee and just making my first steps in c++ under linux. So I have some task about sockets. I'm ... root and still it is not working. 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

...