Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » F_STRING_TO_BYTE(STRING_TO_BYTE Implementation)
F_STRING_TO_BYTE [message #1742773] Wed, 07 September 2016 14:06 Go to next message
yuvaraj velumani is currently offline yuvaraj velumaniFriend
Messages: 15
Registered: April 2016
Junior Member
I was trying to use some of the conversion function blocks in my application and little bit confused to understand the implementation of function block STRING_TO_BYTE or any other datatype format from STRING/WSTRING.

My ideal understanding is that string/wstring which is a collection of characters when converted into a byte datatype it should represent each character in the string/wstring as byte(AscII) .
like for example "ABCD" should have four bytes [65,66,67,68].

or is this used mainly like atoi?

Re: F_STRING_TO_BYTE [message #1742825 is a reply to message #1742773] Wed, 07 September 2016 22:54 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 665
Registered: January 2014
Senior Member

thes functions are mainly used similar to atoi. the problem with your expectation is that then the output of the functions would need to be an array. Even worse the size of array is determined by the size of the string.

Previous Topic:Problem in communication Publish/Subscribe
Next Topic:Missing modules
Goto Forum:

Current Time: Sat Nov 17 10:33:03 GMT 2018

Powered by FUDForum. Page generated in 0.01568 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top