MESSAGE
DATE | 2002-04-23 |
FROM | Ruben I Safir
|
SUBJECT | Subject: [hangout] C problem
|
int main(int argc, char *argv[]){ int ret = 0; hTable = g_hash_table_new(HashFunction, HashCompare); while(1){ if(! ret=scanf("%255s", buff_key)) break; <====LINE 35 if(!scanf("%255s", buff_val)) break; g_print("%s %s %d \n", buff_key, buff_val, ret); g_hash_table_insert(hTable, buff_key, buff_val); }
hash.c: In function `main': hash.c:33: warning: passing arg 1 of `g_hash_table_new' from incompatible pointer type hash.c:33: warning: passing arg 2 of `g_hash_table_new' from incompatible pointer type hash.c:35: invalid lvalue in assignment
-- __________________________
Brooklyn Linux Solutions __________________________ http://www.mrbrklyn.com - Consulting http://www.brooklynonline.com - For the love of Brooklyn http://www.nylxs.com - Leadership Development in Free Software http://www.nyfairuse.org - The foundation of Democracy http://www2.mrbrklyn.com/resources - Unpublished Archive or stories and articles from around the net http://www2.mrbrklyn.com/mp3/dr.mp3 - Imagine my surprise when I saw you... http://www2.mrbrklyn.com/downtown.html - See the New Downtown Brooklyn....
1-718-382-5752
____________________________ New Yorker Linux Users Scene Fair Use - because it's either fair use or useless....
|
|