Skip to main content
-2 votes
0 answers
33 views

#include <stdio.h> #include <string.h> #include <sys/socket.h> #include <netinet/in.h> #include <sys/types.h> #include <netdb.h> #include &...
matthew radon's user avatar
-5 votes
0 answers
75 views

When I run this code: #include <stdio.h> #include <cs50.h> int main(void) { int counter = 0; // Initialitzate counter const int increment_every_time = get_int("What number do ...
user31972567's user avatar
2 votes
0 answers
56 views

I have 2 files: crt.c: const char service_interp[] __attribute__((section(".interp"))) = "${LD_SO}"; extern void _exit (int __status) __attribute__ ((__noreturn__)); int main(); ...
Stas Badzi's user avatar
2 votes
0 answers
63 views

I Am implementing Lockless ring buffer for multiple producer and single consumer (keeping in plan to extend it to multiple produce and consumer) using design reference of dpdk buffer : https://doc....
vinit Tirnagarwar's user avatar
1 vote
1 answer
50 views

I have that code: #include <stdio.h> #include <stdbool.h> #include <unistd.h> #include "esp_system.h" #include "esp_timer.h" #include "freertos/projdefs.h&...
Губин Егор's user avatar
-2 votes
0 answers
77 views

Here is the code: void (*volatile sys_func)(void); void main(int argc, char **argv) { int i, j; for (j = 0; j < 3; ++j) { for (i = 0; i < 10000; ++i); sys_func(); } ...
chav1s's user avatar
  • 37
1 vote
0 answers
56 views

I'm trying to use C source files that are located outside my Ceedling project root. My repository has shared code in a common/ folder at the repo root, but my Ceedling project is in boards/CANGateway/....
Stop It's user avatar
  • 11
Best practices
1 vote
12 replies
112 views

I've been researching this for a day and I've found a lot of conflicting information on multiple websites. I'm writing a simple test that will allocate and initialize a char** (array of strings, char*...
Maryann's user avatar
  • 39
1 vote
0 answers
102 views

This is a follow up to my previous question about creating a debugger for C source files in Python. The current issue I am facing is monitoring changes to variables. I want to monitor 8 variables say ...
user14773854's user avatar
-9 votes
0 answers
56 views

{"level":"error","ts":1764409482.772595,"caller":"vddk-service/service.go:125","msg":"Failed to open disk","error":"...
Atif Shafi's user avatar
  • 1,178
4 votes
3 answers
127 views

I've found that there are conditions that the second argument of va_start(ap, last) must satisfy, which are: last must not be a register variable last must not be a function last must not be an array ...
Doohyeon Won's user avatar
-3 votes
0 answers
72 views

How can I get autoindentation to use Whitesmith style for C/C++ files in VSCode? I use Microsoft C/C++ Extension pack and clang-format. "Format Document" works ok with C/C++ files.
tohoyn's user avatar
  • 161
2 votes
1 answer
122 views

I have 2 files: foo.c: #include <stdio.h> int Main(int a) { printf("A%dB",a); } int main() { return Main(1); } bar.c: extern int Main(int); int main() { return Main(2); } ...
Stas Badzi's user avatar
1 vote
0 answers
37 views

When I use the F2800137 DSP chip to develop a CPU timer code with ccs20.3 version, I find that the macro named __TMS320C28XX__ in cputimer.h file is not defined, which leads to me not being able to ...
fengyirusi's user avatar
-3 votes
4 answers
152 views

Okay, this isn't exactly a typical programming situation. I wanna make a pokemon-like homebrew game for the nintendo DS (I know I could use C++, but I only know C so I'm just trying to code in C for ...
Roland Carpenter's user avatar

15 30 50 per page
1
2 3 4 5
27221