Does C have any tools for doing string addition?

前端 未结 3 607
失恋的感觉
失恋的感觉 2020-12-04 04:31

I\'m making a function that returns the derivative of a function that is represented as a tree like

      /   +    \\
     *          ^
   /   \\      /   \\         


        
3条回答
  •  半阙折子戏
    2020-12-04 04:41

    What you're looking for is string concatenation, and the standard C library function for that is strcat, or better (because arguably safer) strncat.

    See http://linux.die.net/man/3/strcat

提交回复
热议问题