| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
custom strncat, strcmp and strncmp with pointers
i need to create 3 functions that immitate the built-in strncat, strcmp and strncmp functions in the cstring library.
i could probably do it with arrays, but i need to use pointers instead. could somebody lead me in the right direction? thanks, mike |
|
#2
|
|||
|
|||
|
strcmp(arg1,arg2)
If strings arg1 and arg2 are equal, it returns 0. so u have to have a comparative if statement. As for the pointers , can't you just use refrences? |
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > custom strncat, strcmp and strncmp with pointers |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|