I have to convert a NSString to a null ended char[].

The way Im doing it is like this:

```
NSString *regC = @"1234"    
char REG[[regC length] +1];
BOOL result = [regC getCString:REG maxLength:32 encoding:NSUTF8StringEncoding];

```

and I dont know if is it the correct way.

REG has to be a 5 chars array, with a null in the last one/

Thanks.