2

I'd like to be able to concatenate a string and an int using strjoin(), e.g.,

strjoin("ada", args[1]->unit_number);

but in order to do that I have to make sure that the int is first converted to a string.


I'm running DTrace on FreeBSD 13.1-RELEASE.

1 Answer 1

2

Apparently, there is an lltostr() that does that:

strjoin("ada", lltostr(args[1]->unit_number));

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.