Hi,
do anybody know source code of snmpset? http://www.opensource.apple.com/darwinsource/10.2/net_snmp-7/net-snmp/apps/snmpset.c I need to adjust it in the way that the main function would copy the parameters from the memory and no from command line. From structure, what would be exactly the same as a argv structure. So I changed name of main function to for example int set (int argc, char *argv[]) /this parametres are local, that\'s means that they aren\'t the same sturcture as argv form command line/.then created such structure as argv int myargc = 9; char *myarvg [9]; myargv [0] = \".....\"; .. .. myargv [8]; and called set (myargc, myargv); but the result was Segmentation Fauld. Could anybody help me figure out where is the problem ? Thanks Roman __________ http://www.pnp.sk - pridajte svoje fotky na PaciNepaci ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
