i am currently working (more testing) coding on C.
Actually i run in the following issue:
I got an storage error, when trying to save an integer, converted out of an Pointer. I googled this and the other dudes do the same and.. it works lol.
Would be glad if you could take a look. No Compile Errors.
Code:
int main(int argc, char **argv)
{
utilInit(argv[0]);
int port = 8111;
if(argc > 1)
{
if(strcmp(argv[1], "-p") == 0)
{
if(isdigit(argv[2])){
int port = ntohs(argv[2]);
}
}
}
infoPrint("Chat Server running on Port: %i", port);
const int result = connectionHandler((in_port_t)port);
return result != -1 ? EXIT_SUCCESS : EXIT_FAILURE;
}
Thanks.






