Questions tagged as 'c'

0
answers

Send message by socket in C blocks

I need to send data packets in blocks through a socket . I have a pointer of uchar with the complete message, and a variable of type int with the length of it. The connection of the socket I have already done perfec...
asked by 03.10.2018 / 14:59
0
answers

Create dll library in C # and use it in a C project

I tell you that I'm doing a project in LabWindows / CVI 2012 which is an ANSI C development environment, where a couple of days ago I've been trying to execute command lines in windows to boot the bootloader in an ATMEGA328P, and they suggested...
asked by 24.07.2018 / 14:01
1
answer

Problem with a C exercise

Hello good results that I have a problem with an exercise, the enunciation is the following: -Write a program that reads a file created called "personas.txt". This file contains data from three people: (people.txt) ·First name ·Surname · N...
asked by 28.05.2016 / 11:17
1
answer

When using two WHILE loops in C, only the first one executes

If I mention one of the two, whatever it is, the other one works, but both at the same time it does not work. #include <stdio.h> #include <stdlib.h> char fichero1; char linea[1024]; int cuenta; char letra; char c; main() { printf(...
asked by 13.06.2018 / 21:59
1
answer

Send and receive messages in c and python (client and server)

I need to know how I can send and receive messages from these two different languages. I would thank that very much. (I'm new to this): $ Server python (Centos): import socket import threading def conexiones(socket_cliente): peticion...
asked by 12.06.2018 / 03:36
0
answers

how to use the fseek function correctly in c

Hi, I have a little doubt, how to use the fseek function in c to search for a specific type of data. I've been searching but no answer gives me an idea of how I should use the function, (I'm using dev-c) I leave the code that I have: #include...
asked by 01.06.2018 / 01:28
1
answer

Modify a record of a structure in a file in C

I practically have to modify the field .baja of the structure of Cliente (this if it is modified correctly) and it turns out that all the other fields are also modified but with junk content. The idea is that they contain the same...
asked by 19.06.2018 / 23:27
2
answers

Obtain window in Linux by coordinates (C / C ++)

I would like to know if someone can tell me if there is any way to obtain information from a window that exists on the desktop given certain coordinates. That is, if there is an alternative to the Windows "WindowFromPoint" function but for Li...
asked by 22.05.2018 / 00:42
0
answers

Send several "entry" fields in a signal_callback

I am working on a project in gtk, in conjunction with C to create a simple login interface. In the first part of the login I only validate the fields and print them in the console, this way of sending more than one ENTRY in a callback I did i...
asked by 06.03.2018 / 21:56
0
answers

Sort alphabetically in a binary tree

It is a binary tree that has the purpose of keeping names in alphabetical order however I am not sure that I am passing the parameter correctly. I'm sorry if the code is a bit long. #include <stdio.h> #include <stdlib.h> #include &...
asked by 11.02.2018 / 21:09