Re: simple c code fails

2005-08-22 Thread Dave Shield
On Sun, 2005-08-21 at 07:28 -0700, Alaios wrote: > Hi to everyone!!! I have written this simple code... > can u plz help figure out why i always get 0 return? Several reasons: - Because you haven't initialised the library. There needs to be a call to 'init_snmp' before calling 'read

simple c code fails

2005-08-21 Thread Alaios
Hi to everyone!!! I have written this simple code... can u plz help figure out why i always get 0 return? #include #include #include oid *myoid; char mystring[100]; size_t length; int status; int main(int argc,char **argv){ length=5000; strcpy(mystring,".iso.dod.org.internet.mg