Questions tagged as 'c'

1
answer

Problem with incompatible types (double pointers)

I get the doubt having the following function that asks for a double pointer: #include <stdlib.h> void prueba(void **ap) { *ap = NULL; } with the following main: #include <stdlib.h> #include <stdio.h> void pr...
asked by 13.11.2017 / 01:49
1
answer

Use of chains with bison and flex

I have a problem when retrieving strings that I have saved using flex in bison, I am new with these tools and I am only doing tests to create a language, but as I understand when you use the operator $ n gives you the value of the ele n of the r...
asked by 21.04.2017 / 09:57
2
answers

Create string lists

I'm trying to copy the words of a file .txt into a linked list. I wrote something but what happens is that the program closes in a moment, as if there was an error in the assignment of the memory. I do not understand where I'm wrong. #i...
asked by 04.02.2016 / 17:59
0
answers

Shared memory [closed]

I want all the children processes to write in a shared memory and the father then reads it, I have to introduce a series of characters in it, the first process writes 2 characters, the second the next 2 ... Then read this array by the father, ju...
asked by 18.04.2017 / 13:35
1
answer

NETBEANS DEPRESSING ERROR: Unrecognized or ambiguous flag word: \ "? \"

I have NetBeans IDE 8.2 installed next to the Cygwin package in Windows 8.1. I have already tried to reinstall the program but it is not solved. I program in C. When I start the program everything works correctly, the programs compile and...
asked by 21.11.2016 / 21:41
0
answers

How to use the information that is inside a pipe in C?

I have a program that creates a pid process with fork () and in the child makes dup2 so that what I print on the screen happens to pipeA dup2(pipeA[1],1); leer(archivos[j],substring); Read me print strings of charact...
asked by 20.06.2016 / 23:42
0
answers

Schedule in C, create TAD with Xcode

I have a question to make a TAD, (abstract type of data) in C, with the development environment Xcode (version 7.2.1 although I do not think it has much to do with the version). That is, for simple files: test.c (for example) I...
asked by 03.03.2016 / 02:18
4
answers

Will not let me enter the data in an array structure

Excuse me, surely it is something without much difficulty for you but I am just starting in this language, my mistake is something logical that surely I can not understand since I feel that all the arithmetic sentences are made correctly. Keep i...
asked by 15.03.2017 / 00:38
2
answers

Location of includes in C

I am programming in the Atmel Studio IDE in C and when I try to include these libraries #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> when using its methods and then compil...
asked by 25.04.2016 / 10:21
2
answers

Memory usage in C

Is it possible to force in C that a variable be stored on the hard disk, instead of RAM? And, how could you get a reading of the memory used in real time, so that a program will abort automatically if it takes too much?  Thanks. Edit (in resp...
asked by 14.02.2018 / 14:10