Questions tagged as 'c'

1
answer

Error: Undefined reference to 'sqlite3_open'

I am creating a software in C that uses SQLite 3 as a database, but when compiling the project Codeblocks returns me the following error message:    createdata.c || undefined reference to 'sqlite3_open' |       undefined reference to 'sqlite...
asked by 26.10.2015 / 23:18
1
answer

Virtual page - Frame allocation algorithm

Well, can anyone explain this Frame allocation algorithm? I have already broken my head trying to understand what each function does but I can not understand the meaning. Link to the tutorial below: link // A bitset of frames - used or...
asked by 17.12.2015 / 10:55
1
answer

How to read a charde a file and convert to integer

The following code snippet should show the integer value of the single character stored in the file. when I put a letter like 'a' for example it works. but when I put this symbol: þ. and several others it shows -2 on the screen. and this symbol...
asked by 10.10.2015 / 18:54
1
answer

How to read a certain number of rows in C?

This is my code that reads and searches for a particular word, void* pthread_wordCounter(void* parameter){ int count = 0; size_t linesize = 0; char *linebuf = 0; ssize_t linelenght=0; static const char filename[]= "pg76.t...
asked by 15.10.2015 / 00:04
2
answers

Create list chained with realloc ()

I need to implement a list that is simply chained that does not have an indication of next, that is, it should work as a vector, accessing nearby positions in memory. I am using the realloc () command to try to implement, however I am getting er...
asked by 29.09.2015 / 03:57
0
answers

Help with Lexicon Analyzer

Good evening everyone. I'm doing the implementation of a parsing lexicon in c / c ++, but I'm having a problem outputting. I was asked to leave the program only 3 variables and 2 operands, in addition to 1 delimiter and 1 equality. But I trie...
asked by 25.09.2015 / 03:02
1
answer

ASCII value for char or Int value for ASCII C

I need to find a value found by a rand in a file, I'm having a lot of problems because rand returns an integer and to search for a character in a file, the fgetc returns an integer corresponding to the ASCII of the character...
asked by 02.11.2015 / 20:30
0
answers

Problems using FK, SQLITE3 and C

I'm having trouble writing records to my log table that has an FK from the client table. The error is in the insert_log () function SQL to create tables sql_create_client = "CREATE TABLE cliente (id INTEGER NOT NULL PRIMARY KEY AUTOINCR...
asked by 02.11.2015 / 01:42
1
answer

Problem with Allegro image call by C terminal Mac

I have a problem here, I'm making a game using Allegro , I'm compiling the terminal and it's okay, there's only one, however, when I load an image of the failure while loading the image , the problem is not the code, I already tried to run code...
asked by 03.09.2015 / 04:28
1
answer

Why can not I print content in Linked List

Good evening, I have a problem with a college job. I need to create a linked list that receives student records. I created a function to register, however, I can not externally print the contents of it using the first one's pointer. I would like...
asked by 24.10.2015 / 02:28