I've been reading about sscanf and it's ability to parse strings. I'm now very confused about the proper usage.
I want to parse a full file name string into independent name and respective extension but the proper syntax eludes me. I keep getting confused.
I figure that it needs to look something like this but it doesn't appear to work properly:
Can someone help me the proper usage of the "[" and"[^" ?
mike
I want to parse a full file name string into independent name and respective extension but the proper syntax eludes me. I keep getting confused.
I figure that it needs to look something like this but it doesn't appear to work properly:
Code:
sscanf( full_filename, "%[^.]s.%s", filename, extension );
Can someone help me the proper usage of the "[" and"[^" ?
mike