- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
did you took a look on IPP C# sample, which demonstartes how to implement C# interface to IPP functions? It also contains interfaces to ippCH functions (string and text processing which you use)
Regards,
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
yes, our expert prepared such a simple sample specially for you:)
#include
#include
#include
int main() {
const Ipp8u States[] = "Alabama Alaska Arizona Arkansas California Colorado Connecticut";
Ipp8u buff[40];
Ipp8u* nameState[4] = { buff, buff + 10, buff + 20, buff + 30 };
int lenNameState[4]= { 10, 10, 10, 10 };
int i, numState = 4;
IppStatus status;
status = ippsSplitC_8u_D2L( (Ipp8u*)States, sizeof(States) - 1, ' ', nameState, lenNameState, &numState );
if( status < ippStsNoErr ) {
printf( "Error "%s" appear in ippsSplitC_8u_D2L function.
", ippGetStatusString( status ) );
return 1;
} /* if */
for( i = 0; i < numState; i++ ) {
*(nameState + lenNameState) = '';
printf( "State %d: %s;
", i, (char*)(nameState) );
} /* for */
return 0;
} /* main */
This example should ouput on the screen:
State 0: Alabama;
State 1: Alaska;
State 2: Arizona;
State 3: Arkansas;
Regards,
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Im sorry, I could have sworn he was looking for managed code without pointers. I don't see any managed code here. No namespace, and managed C# has no use for headers. Great program, but maybe not quite what he was hoping for...
Thanks,
Ryan
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page