Strings doesn't work in enums
#3

Quote:
Originally Posted by Vince
View Post
strcat has a third, optional, parameter called maxlength which by default is set to sizeof(dest). However, you can't get the size of an array element and thus that code is invalid. You must supply the length manually. The same applies to cache_get_field.
Oh! thats why it didn't work, anyways i tried adding a maxlength and it worked!

Thanks
Reply


Messages In This Thread
Strings doesn't work in enums - by Kirollos - 05.07.2013, 19:56
Re: Strings doesn't work in enums - by Vince - 05.07.2013, 20:03
Re: Strings doesn't work in enums - by Kirollos - 05.07.2013, 20:05

Forum Jump:


Users browsing this thread: 1 Guest(s)