Hello,
I've got a problem that I can't fix by myself, I'm fairly new to
programming in C and in Unix and so I'm having a tough time doing a
simple task of converting a binary number to a string. Can anyone help
me with that?
Here is the problem:
vals2 = ldap_get_values(ld,e,b);
if ( vals2 != NULL)
{
strcpy(sid,vals2[0]);
}
The strcpy function isn't working since vals2[0] is a binary number
and not a string. I need to find away to make vals2 a string in order
to copy it to the sid variable.
Thanks,
Todd