to replace "\" with "/" in a string using FrameMaker API
How to replace "\folder1\folder2\folder3" with "folder1/folder2/folder3" using framemaker API ?
How to replace "\folder1\folder2\folder3" with "folder1/folder2/folder3" using framemaker API ?
Hi Asha,
That should work as well. Note the following, though:
- your version will always be case-sensitive, which is OK for what you needed
- maybe you've left some code out, but what you have shown is missing some important allocation/deallocation steps for use with F_StrCat(). You have to allocate more space before concatenating strings and have to deallocate all unused pointers when done or before using them again. It might work for now, but I can assure you that improper allocation routines are a sure path to memory leaks and crashes in the future.
Russ
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.