How to easiest copy the values of one struct to another of the same type? In C/C++ the assignment operator does this job but it seems this is not how it works in ST. Do I need to specify a specific copy function for each struct?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How to easiest copy the values of one struct to another of the same type? In C/C++ the assignment operator does this job but it seems this is not how it works in ST. Do I need to specify a specific copy function for each struct?
Originally created by: scott_cunningham
You basically need to perform a byte copy. See this post: https://forum.codesys.com/viewtopic.php?t=7671#p17493