![](/media/cache/profiles/94aef38441efa3380a3bed3faf1f9d5d.50x50_q85.jpg)
Diff: RTno/PortBase.cpp
- Revision:
- 0:b14546a3cfab
diff -r 000000000000 -r b14546a3cfab RTno/PortBase.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RTno/PortBase.cpp Fri Jul 29 11:23:06 2011 +0000 @@ -0,0 +1,22 @@ +/******************************************* + * 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); +}