Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
1 vote
1 answer
104 views

I am working on a uni project (I have to develop a to-do list type terminal application [second semester Computer Science]) and I have been wondering how to make this initial part of the algorithm ...
-4 votes
0 answers
67 views

This is a continuation of https://developer.apple.com/forums/thread/795348 I rambled too much and did not understand the underlaying problem. The problem is that I have a C function in a iOS library. ...
-3 votes
3 answers
66 views

Description While debugging a small C program on Linux with GDB, I noticed that a local variable in main appears to contain ELF header bytes right at function entry: s = 0x7ffff7fc1000 "177円ELF\...
3 votes
1 answer
101 views

I am writing a simple shell in C on Linux. My goal is to handle the Ctrl+D (EOF) signal such that if the user types a command (e.g., ls) and presses Ctrl+D, the shell exits immediately without running ...
-4 votes
0 answers
120 views

I am confused as to why GetAdaptersInfo() requires a contiguous block of memory to store a linked list of IP_ADAPTER_INFO structs. During the first call, we pass the memory location of a ULONG that is ...
-1 votes
0 answers
72 views

i'm working on the game on C and i wrote a function for saving records in the file. these records have four parameters: size, difficulty_level (they are integers), hints (boolean) and time (uint32_t). ...
1 vote
1 answer
78 views

Consider this minimal example program: #include <mysql/mysql.h> #include <stdio.h> int main() { MYSQL *conn = mysql_init(NULL); unsigned int mode = SSL_MODE_DISABLED; ...
3 votes
0 answers
80 views

My program creates a window and renderer, and I have a basic event loop to handle SDL_DROPFILE events: #include <stdio.h> #include <stdbool.h> #include <SDL2/SDL.h> #define ...
0 votes
1 answer
112 views

I have a C program and I'm using Meson+Ninja to build it. project('NESt', 'c') source_files=files('src/main.c', 'src/App.h', 'src/App.c', 'src/Emulator.h', 'src/Emulator.c', 'src/Mapper.h'...
3 votes
0 answers
71 views

I'm trying to interface between and stm32f103 and a light sensor using I2C using the Lower-Layer libraries. I have to read 2 bytes of data from the sensor and I'm using the sequence of register writes ...
1 vote
1 answer
98 views

I am debugging a C program on Linux (x86_64) using GDB and AddressSanitizer. I have a stack variable: struct file_ctx ctx; memset(&ctx, 0, sizeof ctx); I set a hardware watchpoint on the ...
1 vote
1 answer
99 views

I am working on an embedded RTOS system, where the CPU is a MIPS32. The GNU ld.script specifies the final binary runs from 0x80000000, I think it is KSEG0 address space. I wrote a test to read ...
wangt13's user avatar
  • 1,327
3 votes
1 answer
149 views

Furthermore, is the sizeof guaranteed to be the same on compatible types? I expect the answer to both of these questions is likely "yes" in practice, but I don't see anything in the standard ...
Best practices
0 votes
1 replies
95 views

I have an array of simulation states that I want to pass to a fragment shader. In this scenario each state element should result in a pixel on the screen. In order to decide what the color of the ...
4 votes
2 answers
220 views

I found this code on GitHub and realized the hard way that it works on Windows, but not on Linux. #define HASH_CONSTANT 2654435769 uint32_t fibHash(uint32_t hash, uint32_t shift) { return (hash * ...
Costantino Grana's user avatar

15 30 50 per page
1
2 3 4 5
...
27222

AltStyle によって変換されたページ (->オリジナル) /