Posts by Zeero • 96 points
7 posts
-
0
votes2
answers303
viewsA: Giving "Segmentation fault" when I try to open C files
As already answered here, the problem is that you have not allocated any memory space to file1char. You can also take a dynamic approach without too much complication, being able to carry out the…
-
1
votes2
answers80
viewsA: Use extra space in addition to that reserved by "malloc"
When we use much more than the memory we allocate, simply the Operating System will not know that what is left belongs to your program and any other process can use this space, then in the middle of…
-
0
votes1
answer71
viewsA: Why does the function leValidaText return trash?
Your code seems to be still in development and I believe you’re still learning, otherwise you could be using something as elaborate as structs, then I believe you have some limitations to do this…
-
3
votes1
answer5093
viewsA: How to make dynamic string allocation
Note that a String is a Character Vector, so allocating a String Vector is basically a Character Matrix, to dynamically allocate a Character Array you need to do this, specifically for your example…
-
0
votes1
answer1407
viewsA: Remove the first element from a double chained list - C
I like the way you structured your program, but your problem happens because of a misunderstanding, or lack of attention in the removal both in the case of removing the first element, and in the…
-
0
votes1
answer68
viewsA: Accessing the allocation causes program to stop working
The way the code was presented is a little difficult to determine with certainty what the problem is, even because it was not informed completely, but there are some considerations. First of all, I…
-
1
votes0
answers102
viewsQ: P2P "Serverless" with Godot Engine, through Requests
I am developing a game based on Turnos 1v1 na Godot Engine, and I’m having a hard time connecting two players as in a matchmaking. My problem is that I don’t want a central server itself, if…