Skip to main content
5 votes
2 answers
66 views

Suppose we have the following C code: unsigned int a = 64; int b = a - 128; This arithmetic will cause an underflow, because the calculation is unsigned. Hence, the result will be a very large number....
user16316067's user avatar
1 vote
0 answers
123 views

For context, I have a function to print some text, which naturally takes in a ⁨const char *const *⁩ as one of its arguments (meaning the provided text will not be modified in any way by the function). ...
Analyzers's user avatar
-1 votes
0 answers
44 views

I am debugging an ESP32-S3 project using Espressif IDE (Eclipse) + ESP-IDF. I can attach, halt, set breakpoints, and disassemble, but stepping is painful because the debugger always enters functions ...
0___________'s user avatar
  • 71.8k
Tooling
0 votes
9 replies
112 views

I am dealing with a spanish .txt dictionary. As you may (or may not know), some words contain special punctuation that defines explicit accent in certain vowels: á, é, í, ó, ú. I want to create a .C ...
elosegui's user avatar
3 votes
2 answers
86 views

I was setting up gdb on vscode on windows and it wasn't working. I soon found out that it was erroring giving me a SIGSEGV segfault. I tried gdb in powershell with the same problem. I run the program ...
whether nar amr's user avatar
-2 votes
1 answer
132 views

I have a C function that receives data from an input source (e.g., a USB stick or sensor), where the input is ASCII characters representing numeric values. For example, I might receive: "12/04/23&...
Maaz Madha's user avatar
1 vote
1 answer
82 views

Context: I am working on a Raspberry Pi Pico project where a potentiometer controls the volume (0–100%), and the volume is visualized on a WS2812 LED strip as a smooth color gradient from green (0) to ...
learningtoomuch's user avatar
0 votes
0 answers
75 views

As an exercise problem I am trying to write a program that will invert matrices using the method of LU decomposition with partial pivoting. I sort of understand LU decomposition but was struggling to ...
uran42's user avatar
  • 517
0 votes
0 answers
44 views

I expect the variable i to decrement and make the led on P1.0 to go from slow blinking to fast blinking, then repeat. I turned off optimizations in code composer studio but the led blinks at a ...
sanishok's user avatar
0 votes
0 answers
48 views

I'm working in a large C Zephyr RTOS workspace in VS Code, and the LSP gives errors on the lines of: identifier "ENUM_VARIANT" is undefined and incomplete type "const struct ...
user23571673's user avatar
3 votes
3 answers
128 views

I am compiling the CURL library, and in doh.c I am facing a compilation error: #define STRCONST(x) x,sizeof(x)-1 #define Curl_dyn_addn(a,b,c) curlx_dyn_addn(a,b,c) Curl_dyn_addn(c, STRCONST(".&...
zulunation's user avatar
1 vote
2 answers
138 views

I was trying to make a program that erases spaces and comments from a text file: #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #define SIZE 10 static inline bool ...
Aperture Science's user avatar
-3 votes
1 answer
69 views

I’m working with an STM32 microcontroller using USB CDC (Virtual COM Port) and handling incoming data in CDC_Receive_FS(). I want to understand the behavior for UART-style communication: If the host ...
Keerti Madhuvantika 's user avatar
4 votes
2 answers
164 views

Consider the following struct types, declared in different translation units: // Defined in translation unit 1 struct s { int x; }; // Defined in translation unit 2 struct s { struct { int x; }; }; ...
Grant Jurgensen's user avatar
1 vote
0 answers
68 views

I am trying to build a simple gba-bootstrap project - the default one - just to confirm that everything is installed and setup correctly, and got an error: /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-...
Ilya's user avatar
  • 39

15 30 50 per page
1
2 3 4 5
27222