So far I've been learning LLVM by looking at the output of C code. For functions like printf, puts, and strlen, you just define the function signature and then call it. However, how do I use strcat? When looking at the C output, it generates things like:
So far I've been learning LLVM by looking at the output of C code. For functions like
printf
,puts
, andstrlen
, you just define the function signature and then call it. However, how do I usestrcat
? When looking at the C output, it generates things like:And to use it it calls:
How does this work? How would I generate code to concatenate two strings with this library?