Movatterモバイル変換


[0]ホーム

URL:


Sorry, we no longer support your browser
Please upgrade toMicrosoft Edge,Google Chrome, orFirefox. Learn more about ourbrowser support.
Skip to main content
Stack Overflow
  1. About
  2. OverflowAI
Loading…
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives
407,727 questions
Filter by
Sorted by
Tagged with
-1votes
0answers
15views

What is wrong with my Programming Syntax? i got no idea

I tried to get my new custom os working and i don't know how to get around it, if anybody else knows. I would like to get help.
diego rego's user avatar
0votes
0answers
11views

Why is my Stippled Line Code (C99/SDL2) not working properly?

A few weeks back i was prototyping something in SDL2 (using SDL Surfaces) to make stippled lines for my app PGM. I did conplete the code; At first I assumed it was working as intended but when i ...
0votes
0answers
19views

QEMU's virtio-mouse-device not sending interrupts to xv6

I am trying to implement a GUI for xv6 operating system as a project for my school. I set up the GUI part and now need to implement the portion where the kernel picks up the mouse input and render the ...
-2votes
0answers
35views

How to prevent log corruption when multiple threads write to a file descriptor? [closed]

I'm building a multi-threaded HTTP server from scratch. Each request is logged to stdout, but when multiple threads print simultaneously, the logs get corrupted (e.g., entries interleave like this):...
0votes
1answer
93views

Pointer arithmetic in C [duplicate]

I had to predict the output of this code in a question :#include <stdio.h>int main( ) { int arr[] = { 10, 20, 30, 45, 67, 56, 74 }; int *i, *j; i = &arr[1]; j = &arr[5]...
0votes
0answers
37views

Why is data written to the file even though the buffer is not full when the program finishes? [duplicate]

I expected that without calling fclose(), and with the buffer not being full, nothing would be written to the file. But when the program finishes, the data still appears in the file.Or the C runtime ...
Dahy Allam's user avatar
0votes
0answers
27views

Deadlock: multithreading with CPAchecker

I tried to find a way to verify deadlock with CPA checker. My goal is to check the "problem of philosofer".I found a lot of problem with CPA checker and threading.Someone can help me find ...
1vote
2answers
89views

storing all c stuct arrays in only one single memory segment obtained with malloc/calloc

Suppose I have a database in memory that I want to modify.Let's say the tables are phone information and items.The phone information consists of a name up to 99 characters and a character code.The ...
1vote
1answer
53views

Why does `wprintf` replace non-ASCII characters with question mark `?` characters?

When running the following program (on Linux):#include <stdio.h>#include <wchar.h>int main() { wprintf(L"Hej hopp: %lc\n", L'ä');}...the program outputs Hej hopp: ?, ...
Per Lundberg's user avatar
1vote
1answer
86views

Why am I getting `-bash: ./animalprogram.bin: No such file or directory` on a fully built and linked program?

OK so I'm trying to create some educational content, and I seem to have come to an impasse myself. I'm building a very simple C / ASM project just to demonstrate linkage. All appears fine and well ...
1vote
0answers
65views

How Can I remove "unnecessary" imports from a DLL in Visual Studio

I'm currently trying to make a dll for Windows 95. I am writing this app in C using Visual studio 2022 Community Edition. The Problem I am having is that there are a lot of imports from some dlls that ...
0votes
1answer
51views

How to locate and overwrite EIP in a buffer overflow lab using GDB 14.2?

I have the following code as part of a buffer overflow CTF challenge:#define _GNU_SOURCE#include <stdio.h>#include <string.h>#include <unistd.h>int my_gets(char *buf) { int ...
hieuvm's user avatar
2votes
1answer
61views

finding out how many processes are waiting on named semaphore

I found a toy program here (http://stackoverflow.com/a/16400833) to check out named semaphores. I modified it somewhat, opening the named semaphore in each child thread instead of in the parent ...
3votes
0answers
56views

C socket server code binds to INADDR_ANY but netstat shows it is only listening to one specific IP address [closed]

I have some old IPv4 C socket server code running on Linux that seemingly correctly binds to INADDR_ANY, but netstat -tuln | grep <port> shows that it's only listening to the specific IP address ...
-3votes
0answers
39views

Requesting a UDP Hole Punching example [closed]

Does anyone know if there some simple C (or any other language) code for a peer client and registry server?I want to test it and learn from an example.I asked an LLM it gave me this code: https://...

153050per page
1
2345
27182

Related Tags

 × 40781
 × 30424
 × 29955
 × 28464
 × 15992
 × 14690
 × 14315
 × 8801
 × 7981
 × 7835
 × 7762
 × 7211
 × 6966
 × 6669
 × 6400
 × 6363
 × 6347
 × 5994
 × 5983
 × 5924
 × 5855
 × 5422
 × 5356
 × 4943
 × 4915
more related tags

Hot Network Questions

more hot questions
Newest c questions feed

[8]ページ先頭

©2009-2025 Movatter.jp