the code below is used to put a snmp object id into a pdu packet along with 3 parameters. the third parameter is used by the program to identify that the paramter is interrupted as a integer. the 4th parameter "test" is the number that i want to pass, this parameter is of type "(u_char *)" and the last is the length of the string. snmp_pdu_add_variable(pdu, oid, oid_length, ASN_INTEGER , test, strlen(test));// thanks ian
I
idineen
@idineen
Posts
-
(u_char *) -
(u_char *)hi there, i need to send the decimal number "2" as a parameter to a function, but the method passes this parameter as a (u_char *). how can i stop this number from being converted to its ascii value of 50 when passing it through the parameter. i can't send the ascii value of "2", as this is defined as STX in ascii table. ian dineen