![](/media/cache/profiles/94aef38441efa3380a3bed3faf1f9d5d.50x50_q85.jpg)
RTno/PortBase.cpp
- Committer:
- nucho
- Date:
- 2011-07-29
- Revision:
- 0:3c49891bc39d
File content as of revision 0:3c49891bc39d:
/******************************************* * PortBase.h * @author Yuki Suga * @copyright Yuki Suga (ysuga.net) Nov, 10th, 2010. * @license LGPLv3 *****************************************/ #include <stdlib.h> #include <string.h> #include "PortBase.h" PortBase::PortBase(char* name) { m_pName = (char*)malloc(strlen(name)+1); strcpy(m_pName, name); } PortBase::~PortBase() { free(m_pName); }