I take a string like “abcd” as a command line argument in my java code. I need to pass this string to my C JNI code which should take this string and use it as a shared memory identity.
I am looking to know how and where I can make this string to be representing a hexa value.
I take a string like abcd as a command line argument in my java
Share
Java or C? In C, you use
strtoul:Check the manual; when parsing user input it’s vital to check for errors, and there are several aspects to this when using
strtoul.