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.

Mateusz Piotrowski
  • 4,623
  • 5
  • 36
  • 70

1 Answers1

2

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

strjoin("ada", lltostr(args[1]->unit_number));
Mateusz Piotrowski
  • 4,623
  • 5
  • 36
  • 70