5

[SOLVED] c assign from tmp varialbe to pointer

view full story
linux-howto

https://bbs.archlinux.org – You may want to use strdup(3) instead of malloc(3)/strlen(3)/strncpy(3) is not ANSI but POSIX Also you may want to use fgets(3)/sscanf(3) when you are reading an integer otherwise surprises will be happens [#1] anyways I also recomends when reading strings strdup(3) calls malloc(3), so this memory needs to be freed with free(3).[#1] http://c-faq.com/stdio/scanfprobs.html djgera https://bbs.archlinux.org/profile.php?id=21625 2012-10-27T01:21:25Z (HowTos)