Questions tagged as 'c'

0
answers

How to configure codeblock so that it compiles in GTK3 and not in GTK2?

I am trying to modify the script when creating the project but it marks it as read only, basically I want to do this, but it does not let me edit it:    link I am not very knowledgeable about Ubuntu, editing it from terminal through sud...
asked by 27.03.2018 / 21:09
0
answers

how to show the result of execvp in client

I have more this code in my server program: if (! fork ()) {     dup2 (sockClie, 0); // stdin     dup2 (sockclie, 1); // stdout     close (sockClie);     execvp (arg, arg); } What I want is for the server to ask me for the commands to my clil...
asked by 20.03.2018 / 18:21
0
answers

Why is not the binary file modified?

I have to create a program that modifies the age of a binary file, in addition to other sections but I can not understand why this age is not modified, here I attach the code, in the last printf of opc1, I get it perfect but at re-listing the fi...
asked by 16.03.2018 / 18:38
0
answers

Strcpy Core Violation nonsense

I wanted to ask for help urgently since I'm doing a project and I need to find out where I got my error my program is supposed to scrap a text and evaluate if there are words that support or attack a candidate (school work) My problem is t...
asked by 04.04.2018 / 04:30
1
answer

Doubt with fork system call ()

I have read about the operation of the call fork () and so far I have understood that it makes a copy of the process that is running and through a fork it is possible to know if we are in the process father or son as in the next example. N...
asked by 03.03.2018 / 17:55
1
answer

Problem with scanf en strings

char palabra [20]; char letra; printf("Ejercicio para eliminar un caracter de una palabra\n"); fflush(stdout); printf("Introduzca la palabra deseada:\n"); fflush(stdout); gets(palabra); //scanf("%s",palabra); printf("Introduzca el caracter...
asked by 02.03.2018 / 16:49
1
answer

Initialize ESC to control brushless motor with gpio [closed]

I am trying to operate a brushless motor with the gpio of an orange pi zero using wiringPi I have managed to turn it once but it does not work always the problem is in the initialization of the ESC controller when it works 2 beep it waits for a...
asked by 21.01.2018 / 22:14
0
answers

Take values from file.txt

Good morning, I have a little doubt. I have to load some data from a txt file with three columns, the first is not necessary to keep it. The size of the vectors to be of 15000 samples, should I make the length of these as dynamic vectors?...
asked by 19.12.2017 / 16:26
1
answer

It does not generate a correct matrix

When doing the cycles so that the matrix generates me, it arrives the point in which when having to generate the matrix it remains motionless, and it does not happen of there. The code is for a "game", inside the code come the instructions. I ha...
asked by 04.12.2017 / 21:03
0
answers

Return of a UNIX program to a C program

Good evening, I am running a unix program from a C program, when the Unix program returns with an error, program C is not receiving the return value correctly. For example if the Unix program returns a 1 the program C is receiving a 256. Does an...
asked by 06.12.2017 / 01:45