Questions tagged as 'c'

3
answers

Using function and header file (header)

I'm doing a simple program however using header file .h (header) and a hello world function, but I have the following alert message: Undefined reference to 'print' . I asked someone else to test it and said it worked out what it might still be?...
asked by 02.04.2014 / 01:18
1
answer

Error when printing chained list

Hello, I'm having an error in the function that prints a linked list. I think the error is in the form's function prints, but I may also be saving the address of prox wrongly. Follow the code: /* * File: main.c * Author: pmar...
asked by 02.12.2014 / 00:03
2
answers

incompatible types when assigning to type 'int * []' from type 'int'

I created a vector of size defined by a constant, and when calling a function that returns an integer vector, this error is generated:    Incompatible types when assigning to type 'int * []' from type 'int' The signature of the function i...
asked by 04.03.2014 / 04:43
1
answer

Computer clock

Is it possible to calculate the difference between two separate time registers for less than one second using the computer's clock? For example, between 12h00m00s000ms and 12h00m00s050ms.     
asked by 10.10.2014 / 03:47
2
answers

Not stopping processing file

Why are not you stopping the comparison? /*7. Faça um programa que leia uma sequência de nomes no formato “nome sobrenome” e armazene-os em um arquivo texto. A lista de nomes termina com um nome igual ao ponto.*/ #include<stdio.h> #...
asked by 10.10.2014 / 05:35
1
answer

How to fill an entire vector with malloc (sizeof (int)) with some value

I have a problem, I have no idea how to fill this vector with some value, for example, I want to fill it all with -1 (start it all with -1). The problem here is that I'm not sure exactly what the size of my vector is. typedef struct argume...
asked by 04.10.2018 / 03:26
1
answer

Error to delete the first register with binary code

I found this code on the internet but it has an error: when I register a user and try to delete it, it shows that it has been removed, but when I open the program again it is still there. This error only occurs when you try to delete the fi...
asked by 09.11.2018 / 18:12
1
answer

IPv6 server accepting IPv4 connections

I wrote a server in C using the UNIX sockets API for some tests and I ended up with a "weird" problem: The server is blocking connections > IPv4 and it was programmed to only accept IPv6 connections. Follow the code and a few details b...
asked by 10.11.2018 / 18:11
0
answers

Refresh behavior (nCurses)

I've been studying the ncurses library recently and I ended up with a question: What exactly does the refresh function do? Searching a little I understood that it should update the screen, showing the output formatted. Basically I would make...
asked by 10.11.2018 / 15:41
2
answers

Help determining vector / array size - Language C

What I would like to do is put in a vector or array, information from a txt file without prior knowledge of the number of "entries" to know the size of the array or array. With the size of the array or array, I can invoke the function...
asked by 17.12.2014 / 23:22