00001 00007 /* License: new BSD license (see NME.h) */ 00008 00009 #include "NMEPluginReverse.h" 00010 00011 NMEErr NMEPluginReverse(NMEConstText name, NMEInt nameLen, 00012 NMEConstText data, NMEInt dataLen, 00013 NMEContext *context, 00014 void *userData) 00015 { 00016 NMEInt i; 00017 (void)name; 00018 (void)nameLen; 00019 (void)userData; 00020 00021 for (i = 0; i < dataLen; i++) 00022 if (!NMEAddString(&data[dataLen - 1 - i], 1, '\0', context)) 00023 return kNMEErrNotEnoughMemory; 00024 00025 return kNMEErrOk; 00026 }