<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/627" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2002-01-01T08:02:00-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/627</id>

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-01-01T08:02:00-04:00</updated>

		<published>2002-01-01T08:02:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3319#p3319</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3319#p3319"/>
		<title type="html"><![CDATA[problem witch a function in a c modul]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3319#p3319"><![CDATA[
<blockquote class="uncited"><div>On 2001-12-31 14:16, guppy wrote:<br>Why is no one sharing their mysql modules with the rest of the community? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"></div></blockquote>I am, but mine is not just ready yet. Right now if you want mine, just mail me. I will put up a snapshot of it when I feel it's ready for testing.<br><br>My homepage is <a href="http://joakim.gissberg.nu/" class="postlink">http://joakim.gissberg.nu/</a>, as shown below.<br><br><br><p>Statistics: Posted by Guest — Tue Jan 01, 2002 8:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[guppy]]></name></author>
		<updated>2001-12-31T17:16:00-04:00</updated>

		<published>2001-12-31T17:16:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3313#p3313</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3313#p3313"/>
		<title type="html"><![CDATA[problem witch a function in a c modul]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3313#p3313"><![CDATA[
Why is no one sharing their mysql modules with the rest of the community? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10">guppy</a> — Mon Dec 31, 2001 5:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-31T05:49:00-04:00</updated>

		<published>2001-12-31T05:49:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3298#p3298</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3298#p3298"/>
		<title type="html"><![CDATA[problem witch a function in a c modul]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3298#p3298"><![CDATA[
My Makefile for my mod mod.mysql looks like this:<br><div class="codebox"><p>Code: </p><pre><code># Makefile for src/mod/mysql.mod/# $Id: Makefile,v 1.9 2000/07/09 14:10:49 fabian Exp $srcdir = .doofus:@echo ""@echo "Let's try this from the right directory..."@echo ""@cd ../../../ &amp;&amp; makestatic: ../mysql.omodules: ../../../mysql.$(MOD_EXT)../mysql.o:$(CC) $(CFLAGS) $(CPPFLAGS) -I/usr/local/mysql/include/mysql -DMAKING_MODS -c $(srcdir)/mysql.c@rm -f ../mysql.omv mysql.o ../../../../mysql.$(MOD_EXT): ../mysql.o$(LD)  -L/usr/local/mysql/lib/mysql -lmysqlclient -o ../../../mysql.$(MOD_EXT) ../mysql.o$(STRIP) ../../../mysql.$(MOD_EXT)depend:$(CC) $(CFLAGS) $(CPPFLAGS) -MM $(srcdir)/mysql.c &gt; .dependclean:@rm -f .depend *.o *.$(MOD_EXT) *~distclean: clean#safety hash../mysql.o: .././mysql.mod/mysql.c ../../../src/mod/module.h  ../../../src/main.h ../../../src/lang.h ../../../src/eggdrop.h  ../../../src/flags.h ../../../src/proto.h ../../../lush.h  ../../../src/misc_file.h ../../../src/cmdt.h ../../../src/tclegg.h  ../../../src/tclhash.h ../../../src/chan.h ../../../src/users.h  ../../../src/compat/compat.h ../../../src/compat/inet_aton.h  ../../../src/compat/snprintf.h ../../../src/compat/memset.h  ../../../src/compat/memcpy.h ../../../src/compat/strcasecmp.h  ../../../src/mod/modvals.h ../../../src/tandem.h</code></pre></div>_________________<br><a href="http://joakim.gissberg.nu/" class="postlink">http://joakim.gissberg.nu/</a> | <a href="mailto:joakim@gissberg.nu">joakim@gissberg.nu</a><br><br>&lt;font size=-1&gt;[ This Message was edited by: tajson on 2001-12-31 02:50 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Mon Dec 31, 2001 5:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-16T11:55:00-04:00</updated>

		<published>2001-12-16T11:55:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2818#p2818</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2818#p2818"/>
		<title type="html"><![CDATA[problem witch a function in a c modul]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2818#p2818"><![CDATA[
I have fix it but nothing now i have a question about the Makefile. I must insert this lines for the compiler:<div class="codebox"><p>Code: </p><pre><code> -L/usr/lib/mysql -lmysqlclient -lnsl</code></pre></div>This is needed for the mysql database. Where is the right location in the Makefile i think this is maybe the error...<br><br>&lt;font size=-1&gt;[ This Message was edited by: Majesticc on 2001-12-16 08:56 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Sun Dec 16, 2001 11:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2001-12-16T09:25:00-04:00</updated>

		<published>2001-12-16T09:25:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2812#p2812</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2812#p2812"/>
		<title type="html"><![CDATA[problem witch a function in a c modul]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2812#p2812"><![CDATA[
Well I didn't look at all of it, but right away I noticed this:<br><br>strcat(query,table);<br><br>You can't do that, there's no room in the query array for more data the way it's defined.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sun Dec 16, 2001 9:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-16T05:53:00-04:00</updated>

		<published>2001-12-16T05:53:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2810#p2810</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2810#p2810"/>
		<title type="html"><![CDATA[problem witch a function in a c modul]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2810#p2810"><![CDATA[
Hello,<br>I have a little problem with a c funtion with my stand alone program it will be work but included in the eggdrop modul i get a sigint on sending the bind. I have reached the error function but i dont find any error. Here is the fuction code:<div class="codebox"><p>Code: </p><pre><code>static char*** get_table_data(char *table){  MYSQL_RES *result;   MYSQL_ROW row;  unsigned int i;   int numrows;  int numfields;  int rowcount;  int fieldcount;  int rowi;  char ***erow;  char query[] = "SELECT * from ";  strcat(query,table);   mysql_query(dbh,query);  result = mysql_store_result(dbh);   numrows = mysql_num_rows(result);  numfields = mysql_num_fields(result);  erow=(char ***)nmalloc(numrows*sizeof(char *));  for(rowi=0;rowi&lt;numrows;rowi++)   erow[rowi] = (char **)nmalloc(numfields*sizeof(char *));  /*  while((field = mysql_fetch_field(result)))    {      printf("%s ", field-&gt;name);    }  */  //printf("n");  rowcount = 0;  //printf("R:%d F:%dn",numrows,numfields);  while ((row = mysql_fetch_row(result)) != NULL)     {      fieldcount = 0;      //printf("n");      for (i=0; i&lt;numfields; i++) {   //printf("%s ",row[i] != NULL ? row[i] : "NULL");   erow[rowcount][fieldcount] = row[i];  fieldcount++;  //printf("%d",fieldcount);}            //printf("%sn",row[0]);       rowcount++;    }  //printf("n");  //printf("TEST: %sn",erow[0][2]);  mysql_free_result(result);  mysql_close(dbh);return erow;//  for(i=0; i&lt;numrows; i++) //   { //      nfree(erow[i]); //    } //  nfree(erow);}</code></pre></div>I hope anyone can help me.<br><br><br><br>&lt;font size=-1&gt;[ This Message was edited by: Majesticc on 2001-12-16 02:54 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Sun Dec 16, 2001 5:53 am</p><hr />
]]></content>
	</entry>
	</feed>
