Lines Matching defs:str
56 const char * str;
94 str = get_event_string( req );
95 if( str && *str )
96 evbuffer_add_printf( buf, "&event=%s", str );
98 str = req->tracker_id_str;
99 if( str && *str )
100 evbuffer_add_printf( buf, "&trackerid=%s", str );
218 char * str = tr_bencToStr( &benc, TR_FMT_JSON, &len );
221 fputc( str[i], stderr );
223 tr_free( str );
232 const char * str;
235 if( tr_bencDictFindStr( &benc, "failure reason", &str ) )
236 response->errmsg = tr_strdup( str );
238 if( tr_bencDictFindStr( &benc, "warning message", &str ) )
239 response->warning = tr_strdup( str );
247 if( tr_bencDictFindStr( &benc, "tracker id", &str ) )
248 response->tracker_id_str = tr_strdup( str );
363 const char * str;
372 char * str = tr_bencToStr( &top, TR_FMT_JSON, &len );
375 fputc( str[i], stderr );
377 tr_free( str );
383 if( tr_bencDictFindStr( &top, "failure reason", &str ) )
384 response->errmsg = tr_strdup( str );
442 char str[SHA_DIGEST_LENGTH*3 + 1];
443 tr_http_escape_sha1( str, req->info_hash[i] );
444 evbuffer_add_printf( buf, "%cinfo_hash=%s", delimiter, str );