ext/ds_imgui.h
static const char* extract_name(UIContext* ctx, const char* t) {
			strncpy(ctx->tmpBuffer, t, 256);
			int l = strlen(t);
			for (int i = 0; i < l; ++i) {
				if (ctx->tmpBuffer[i] == '#') {
					ctx->tmpBuffer[i] = '\0';
				}
			}
			return ctx->tmpBuffer;
		}
// --------------------------------------------------------
// Extract the name. If the text contains # it will be
// cut off at that position. 
// --------------------------------------------------------
Extract the name. If the text contains # it will be
cut off at that position.
Extract the name . If the text contains # it will be cut off at that position .
static const char* extract_name(UIContext* ctx, const char* t) {
			strncpy(ctx->tmpBuffer, t, 256);
			int l = strlen(t);
			for (int i = 0; i < l; ++i) {
				if (ctx->tmpBuffer[i] == '#') {
					ctx->tmpBuffer[i] = '\0';
				}
			}
			return ctx->tmpBuffer;
		}
static const char * extract_name ( UIContext * ctx , const char * t ) { strncpy ( ctx -> tmpBuffer , t , 256 ) ; int l = strlen ( t ) ; for ( int i = 0 ; i < l ; ++ i ) { if ( ctx -> tmpBuffer [ i ] == ' ' ) { ctx -> tmpBuffer [ i ] = ' \0 ' ; } } return ctx -> tmpBuffer ; }
Extract the name.
Extract the name .