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