How do I determine the length of an "embedded" character string? I would like to code a strncpy in which the length field (??? in the example below) would be determined during compilation. Is there some way to reference the "...." characters with a 'sizeof' or 'strlen' call so I can get its length?
strncpy(ToLocation, "some characters here", ???);
Thanks.