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
579 views
1 answer
    total newbie here. i was trying to replace a character in char * but my program gives error #include <stdio.h> int ... ",mystring); return 0; } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
579 views
1 answer
    I want to convert two ASCII bytes to one hexadecimal byte. eg. 0x30 0x43 => 0x0C , 0x34 0x46 => 0x4F ... The ... . Have you got an idea ? Thanks See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
620 views
1 answer
    For one of my exercises, we're required to read line by line and outputting using ONLY getchar and printf. I'm following ... ", c); } return 0; See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
874 views
1 answer
    I was tring to use "reverse-step" and "reverse-next" command inside gdb. Stack overflow tells me that I should run ... n Well, it doesn't work See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
506 views
1 answer
    What does the following mean? struct foo { ... char bar[0]; // Zero size??? }; I asked my colleagues ... long)? Is that just syntactic sugar? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
551 views
1 answer
    Is it possible to determine if another process/window was started using a shortcut? The purpose being to then ... in among other things. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
573 views
1 answer
    Each stream has "an error indicator that records whether a read/write error has occurred". It is set, usually ... -of-file nor input error. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
675 views
1 answer
    I want to know how can I form a 2D array using double pointers? Suppose my array declaration is: char ... the same allocation and properties? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
709 views
1 answer
    Im trying to write a few simple macros to simplify the task of setting and clearing bits which should be a simple task however ... ~(1) << (n))) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
622 views
1 answer
    I'm reading a file and want to put each line into a string in an array. The length of the file is ... but it doesn't answer my question. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
632 views
1 answer
    I have a macro FOO(...) that receives an unknown number of parameters. I want to cast all those params to uint. Is there a way to achieve it? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
682 views
1 answer
    I have audio conferencing device which has a mic and speaker. Both mic and speaker having same sampling rate set by ... (I am new to ALSA). See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
720 views
1 answer
    Is there any way to get back the characters outputted into a variable on ncurses ? let's say I do: printw ... the output format is unreadable.. 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 once again going from Windows to Linux, I have to port a function from Windows to Linux that calculates NTP ... my time to get this result? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
659 views
1 answer
    This seems like a bit of a computing systems 101 question, but I'm stumped. I am integrating existing code ... be doing something wrong here). See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
830 views
1 answer
    I have an exercise where I am required to print a file slowly (1 second intervals) until the file ends, unless the ... 0; } Thanks for the help! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
531 views
1 answer
    I am trying to call a Java method from the code. C code listens to either Escape, Shift, Ctrl key press, ... version 1 COMPLETE CODE version 2 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
503 views
1 answer
    This is my code for speeding up matrix multiplication, but it is only 5% faster than the simple one. What can i ... and it needs to support C99 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
583 views
1 answer
    We have a complex program that is working well on heavy duty input (any input actually) with no multithreading ... newer version of Ubuntu). See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
630 views
1 answer
    I have the follow starting code to get a screenshot of a X window (the window can be covered, not visibled, or ... do this. Can you help me? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
704 views
1 answer
    I'm trying to do a 64=32x32 multiply via the x86 mul instruction, but I only need the high dword of the result ( ... How do I do what I want? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
530 views
1 answer
    Does this use of sem_post() in a signal handler rely on undefined behavior? /* * excerpted from the 2017 ... async-signal-safe functions]. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
888 views
1 answer
    How can I exit or stop a thread immediately? How can I make it stop immediately when the user enters an answer? I ... { game_over(); } } } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
623 views
1 answer
    I have a question regarding the -ffp-contract flag in GNU GCC (see https://gcc.gnu.org/onlinedocs/gcc/Optimize- ... like the fused-mult sub)? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
784 views
1 answer
    I want to test the following things on my target board: Is 'float' implemented with IEEE 754 single-precision (32 ... with a simple C program. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
661 views
1 answer
    I represent dates using seconds (and microseconds) since 1970 as well as a time zone and dst flag. I want to ... print the zone of my choice? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
916 views
1 answer
    in C i want to redirect the output of a process from stdout to write to a "shared memory segment" which can be ... to redirect it to a string? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
809 views
1 answer
    So I have a new fancy cpu that supports avx2 instruction set. This is great, but breaks gdb reverse debugging. When ... , I'm out of ideas. 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

...