Chernov Dmitriy
2016-02-29 148070985fd49efeebfb3a93865a6503d8b1dd4c
libscpi/src/utils.c
@@ -750,6 +750,35 @@
}
#endif
#if USE_DEVICE_DEPENDENT_ERROR_INFORMATION && !USE_MEMORY_ALLOCATION_FREE
char * OUR_strdup(scpi_error_info_heap_t * heap, const char *s) {
   if(!heap || !s) {
      return NULL;
   }
   if(heap->data[heap->wr]!='\0'){
      return NULL;
   }
   size_t len=strlen(s) + 1; // additional '\0' at end
   if(len > heap->count){
      return NULL;
   }
   size_t f_part=(&heap->data[heap->wr]-heap->data)
   return NULL;
}
void OUR_free(scpi_error_info_heap_t * heap, const char *s) {
}
char * OUR_get_1st_part(const char *s, size_t * len) {
   return NULL;
}
char * OUR_get_2nd_part(const char *s, size_t * len) {
   return NULL;
}
#endif
// Floating point to string conversion routines
//
// Copyright (C) 2002 Michael Ringgaard. All rights reserved.