Hi all, more of passing on a discovery than a question, in case it saves someone else a couple of hours (I came to LoadRunner from a SysAdmin rather than a recent coding background, so speaking c as a second language).
Among other string-manipulation functions, LoadRunner supports two, strlwr and strupr (lowercase and uppercase a string, respectively). They work fine in VUGEN. However, our Load Generators are Red Hat Enterprise Linux, and my script with strlwr within fails there at "Error -- Unresolved symbol: strlwr".
As it turns out, this is not a standard c function (the rationale being it only works on US ASCII, essentially, and not, say, UTF-8 or any other character set). Therefore, I had to replace it with a roll-my-own, and not being the best "c" coder, I found that the one I found here seems to work fine as a replacement:
http://www.cprogramming.com/snippets/source-code/how-to-implement-strlwr-in-c
… with one minor change -- had to move "int i=0" to the top. Also, I discovered that anything with "str" followed by an alphabetic is reserved for c use, so I renamed it LocalStrlwr . It's working fine.
Hope this helps someone else,
- Rick Carter
--
Rick Carter
Application Systems Administrator Senior
Information and Technology Services
University of Michigan
rkca...@umich.edu
734-647-5941