Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of HTTPClient by
Diff: data/HTTPText.cpp
- Revision:
- 13:be61104f4e91
- Parent:
- 10:e1351de84c16
- Child:
- 16:1f743885e7de
--- a/data/HTTPText.cpp Sun Aug 05 15:30:07 2012 +0000 +++ b/data/HTTPText.cpp Sun Aug 05 16:12:10 2012 +0000 @@ -17,12 +17,18 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#include "core/fwk.h" - #include "HTTPText.h" #include <cstring> +#define OK 0 + +using std::memcpy; +using std::strncpy; +using std::strlen; + +#define MIN(x,y) (((x)<(y))?(x):(y)) + HTTPText::HTTPText(char* str) : m_str(str), m_pos(0) { m_size = strlen(str) + 1;