Why are you using userlibs?
http://www.blitzbasic.com/b3ddocs/command.php?name=GetEnv
Surely that would do what you need?
To answer your question (note I'm not an expert with userlibs so I could be totally wrong). You can't pass a varible (c$) the way you are. That value would have to be the handle of a bank which you would then convert into a string (by looping through all the bytes returned and using their ascii code to work out the characters)
http://www.blitzbasic.com/b3ddocs/command.php?name=GetEnv
Surely that would do what you need?
To answer your question (note I'm not an expert with userlibs so I could be totally wrong). You can't pass a varible (c$) the way you are. That value would have to be the handle of a bank which you would then convert into a string (by looping through all the bytes returned and using their ascii code to work out the characters)