![](/media/cache/profiles/ba5be68d3d541f2ca043d77fc54fe702.jpg.50x50_q85.jpg)
3rd Repo, trying to figure this out.
Fork of SOFT253_Template_Weather_OS_54 by
Diff: Message/Message.cpp
- Revision:
- 83:0d3572a8a851
- Parent:
- 81:996c0a3319b4
- Child:
- 85:422d0a1b95cf
--- a/Message/Message.cpp Thu May 11 15:53:15 2017 +0000 +++ b/Message/Message.cpp Thu May 11 19:23:55 2017 +0000 @@ -1,9 +1,18 @@ #include "Message.h" +/** + Copies the content from ptr into the Message object text char array. + + @param ptr : Pointer to char array containing message. +*/ void Message::copy(char* ptr) { strncpy(text, ptr, 256); } + +/** + @return text : Returns the text char array stored in Message object. +*/ char* Message::getText() { return text;