Home
last modified time | relevance | path

Searched refs:s_buf (Results 1 – 25 of 287) sorted by relevance

12345678910>>...12

/dports/math/scilab/scilab-6.1.1/scilab/modules/output_stream/src/c/
H A Dsciprint_full.c45 char *s_buf = NULL; in sciprint_full() local
52 if (s_buf == (char *) 0) in sciprint_full()
65 FREE(s_buf); in sciprint_full()
75 s_buf[MAXCHARSSCIPRINT_FULL - 1] = '\0'; in sciprint_full()
78 (void )vsprintf(s_buf, fmt, ap ); in sciprint_full()
83 lstr = (int) strlen(s_buf); in sciprint_full()
87 sciprint("%s", s_buf); in sciprint_full()
103 strncpy(split_s_buf, s_buf + p_s, lstr - p_s); in sciprint_full()
108 if (s_buf) in sciprint_full()
110 FREE(s_buf); in sciprint_full()
[all …]
H A DScierror.c37 char s_buf[bsiz]; in Scierror() local
43 retval = vsnprintf(s_buf, bsiz - 1, fmt, ap ); in Scierror()
45 retval = vsnprintf(s_buf, bsiz - 1, fmt, ap); in Scierror()
49 s_buf[bsiz - 1] = '\0'; in Scierror()
54 pwstError = to_wide_string(s_buf); in Scierror()
H A Dsciprint.c90 static char s_buf[MAXPRINTF]; in scivprint() local
97 count = vsnprintf(s_buf, MAXPRINTF - 1, fmt, args ); in scivprint()
99 count = vsprintf(s_buf, fmt, args ); in scivprint()
104 s_buf[MAXPRINTF - 1] = '\0'; in scivprint()
107 scilabForcedWrite(s_buf); in scivprint()
/dports/textproc/yodl/yodl-5fa97b175c85581d01329013cfdb4239f019b023/yodl/src/string/
H A Dstringshort.c3 static char s_buf[30]; variable
12 strncpy(s_buf, s, 28); in string_short()
13 s_buf[29] = '\0'; in string_short()
15 if (strlen(s_buf) > 25) in string_short()
16 strcpy(s_buf + 25, "..."); in string_short()
18 while ((cp = strchr(s_buf, '\n'))) in string_short()
21 return s_buf; in string_short()
H A Dstringaddchar.c3 static char s_buf[2]; variable
7 s_buf[0] = c; in string_addchar()
8 s_buf[1] = 0; in string_addchar()
10 string_addstr(sp, s_buf); in string_addchar()
/dports/devel/ncnf/ncnf-3.0.1/src/
H A Dncnf_cr_l.l39 char *s_buf; variable
44 if(s_buf) free(s_buf); in _init_s_buf()
47 s_buf = malloc(s_buf_size); in _init_s_buf()
48 if(s_buf == NULL) { in _init_s_buf()
52 s_buf[0] = '\0'; in _init_s_buf()
62 p = realloc(s_buf, s_buf_size << 2); in _s_buf_addchar()
66 s_buf = p; in _s_buf_addchar()
69 s_buf[s_buf_len++] = ch; in _s_buf_addchar()
70 s_buf[s_buf_len] = '\0'; in _s_buf_addchar()
/dports/devel/py-cffi/cffi-1.15.0/c/
H A Dmisc_win32.h92 WCHAR *s_buf = NULL; /* Free via LocalFree */ in b_getwinerror() local
115 (LPWSTR) &s_buf, in b_getwinerror()
123 while (len > 0 && (s_buf[len-1] <= L' ' || s_buf[len-1] == L'.')) in b_getwinerror()
124 s_buf[--len] = L'\0'; in b_getwinerror()
125 message = PyUnicode_FromWideChar(s_buf, len); in b_getwinerror()
133 LocalFree(s_buf); in b_getwinerror()
142 char *s_buf = NULL; /* Free via LocalFree */ in b_getwinerror() local
166 (LPTSTR) &s_buf, in b_getwinerror()
174 s = s_buf; in b_getwinerror()
180 LocalFree(s_buf); in b_getwinerror()
/dports/security/tor/tor-0.4.6.8/src/test/
H A Dtest.c73 char s_buf[TAP_ONIONSKIN_REPLY_LEN]; in test_onion_handshake() local
111 memset(s_buf, 0, 40); in test_onion_handshake()
130 char s_buf[TAP_ONIONSKIN_REPLY_LEN]; in test_bad_onion_handshake() local
182 s_buf[64] ^= 33; in test_bad_onion_handshake()
185 s_buf[64] ^= 33; in test_bad_onion_handshake()
197 memset(s_buf, 0, sizeof(s_buf)); in test_bad_onion_handshake()
219 uint8_t s_buf[NTOR_REPLY_LEN]; in test_ntor_handshake() local
240 memset(s_buf, 0, NTOR_REPLY_LEN); in test_ntor_handshake()
252 memset(s_buf, 0, 40); in test_ntor_handshake()
253 tt_mem_op(c_keys,OP_NE, s_buf, 40); in test_ntor_handshake()
[all …]
/dports/security/tor-devel/tor-0.4.7.2-alpha/src/test/
H A Dtest.c73 char s_buf[TAP_ONIONSKIN_REPLY_LEN]; in test_onion_handshake() local
111 memset(s_buf, 0, 40); in test_onion_handshake()
130 char s_buf[TAP_ONIONSKIN_REPLY_LEN]; in test_bad_onion_handshake() local
182 s_buf[64] ^= 33; in test_bad_onion_handshake()
185 s_buf[64] ^= 33; in test_bad_onion_handshake()
197 memset(s_buf, 0, sizeof(s_buf)); in test_bad_onion_handshake()
219 uint8_t s_buf[NTOR_REPLY_LEN]; in test_ntor_handshake() local
240 memset(s_buf, 0, NTOR_REPLY_LEN); in test_ntor_handshake()
252 memset(s_buf, 0, 40); in test_ntor_handshake()
253 tt_mem_op(c_keys,OP_NE, s_buf, 40); in test_ntor_handshake()
[all …]
/dports/audio/gqradio/gqradio-1.9.2/src/
H A Drcfile.c199 gchar s_buf[1024]; in load_options() local
218 while (fgets(s_buf,1024,f)) in load_options()
220 if (s_buf[0]=='#') continue; in load_options()
221 if (s_buf[0]=='\n') continue; in load_options()
223 l = strlen(s_buf); in load_options()
224 while (s_buf[c] != ':' && c < l) c++; in load_options()
226 s_buf[c] = '\0'; in load_options()
229 while (s_buf[c] == 8 && c < l) c++; in load_options()
231 s_buf_ptr = s_buf + c; in load_options()
233 while (s_buf[c] != 8 && s_buf[c] != ' ' && s_buf[c] != '\n' && c < l) c++; in load_options()
[all …]
H A Dpreset.c310 gchar s_buf[1024]; in preset_list_load() local
325 while (fgets(s_buf, sizeof(s_buf), f)) in preset_list_load()
328 s_buf_ptr = s_buf; in preset_list_load()
332 if (s_buf[0]=='\n') continue; in preset_list_load()
333 if (s_buf[0]=='#') in preset_list_load()
335 if (strncmp(s_buf, "#Preset_", 8) == 0) in preset_list_load()
338 i = atoi(s_buf + 8); in preset_list_load()
343 if (radio_path_is_radio(s_buf)) in preset_list_load()
346 if (i >= 0) preset_set_by_path(i, s_buf); in preset_list_load()
H A Dui_help.c91 gchar s_buf[1024]; in help_window_load_text() local
117 while (fgets(s_buf, sizeof(s_buf), f)) in help_window_load_text()
122 l = strlen(s_buf); in help_window_load_text()
124 if (!g_utf8_validate(s_buf, l, NULL)) in help_window_load_text()
126 buf = g_locale_to_utf8(s_buf, strlen(s_buf), NULL, NULL, NULL); in help_window_load_text()
134 (buf) ? buf : s_buf, -1, in help_window_load_text()
/dports/archivers/lrzip/lrzip-0.631/
H A Dstream.c77 uchar *s_buf; member
195 free(cthread->s_buf); in zpaq_compress_buf()
196 cthread->s_buf = c_buf; in zpaq_compress_buf()
244 free(cthread->s_buf); in bzip2_compress_buf()
245 cthread->s_buf = c_buf; in bzip2_compress_buf()
289 free(cthread->s_buf); in gzip_compress_buf()
384 free(cthread->s_buf); in lzma_compress_buf()
423 free(cthread->s_buf); in lzo_compress_buf()
1312 cti->s_buf = realloc(cti->s_buf, MIN_SIZE); in compthread()
1444 free(cti->s_buf); in compthread()
[all …]
/dports/net/kamailio/kamailio-5.4.5/src/core/
H A Dcfg.lex616 memset(&s_buf, 0, sizeof(s_buf));
1029 memset(&s_buf, 0, sizeof(s_buf));
1064 memset(&s_buf, 0, sizeof(s_buf));
1112 memset(&s_buf, 0, sizeof(s_buf));
1217 memset(&s_buf, 0, sizeof(s_buf));
1292 memset(&s_buf, 0, sizeof(s_buf));
1338 memset(&s_buf, 0, sizeof(s_buf));
1352 memset(&s_buf, 0, sizeof(s_buf));
1360 memset(&s_buf, 0, sizeof(s_buf));
1366 memset(&s_buf, 0, sizeof(s_buf));
[all …]
/dports/security/hitch/hitch-1.7.0/src/foreign/
H A Dvsb.c87 KASSERT(s->s_buf != NULL, in _assert_VSB_integrity()
145 newbuf = realloc(s->s_buf, newsize); in VSB_extend()
154 s->s_buf = newbuf; in VSB_extend()
187 s->s_buf = buf; in VSB_newbuf()
194 if (s->s_buf != NULL) in VSB_newbuf()
200 s->s_buf = SBMALLOC(s->s_size); in VSB_newbuf()
201 if (s->s_buf == NULL) in VSB_newbuf()
273 s->s_buf[s->s_len++] = (char)c; in VSB_put_byte()
436 s->s_buf[s->s_len] = '\0'; in VSB_finish()
454 return (s->s_buf); in VSB_data()
[all …]
/dports/games/retroarch/RetroArch-1.9.7/wii/libogc/libogc/
H A Dsdgecko_buf.c15 static BufNode s_buf[BUF_POOL_CNT]; variable
22 s_buf[i].next = s_buf+i+1; in sdgecko_initBufferPool()
24 s_buf[i].next = NULL; in sdgecko_initBufferPool()
25 s_freepool = s_buf; in sdgecko_initBufferPool()
/dports/audio/tagutil/tagutil-3.1/src/compat/
H A Dsubr_sbuf.c110 KASSERT(s->s_buf != NULL, in _assert_sbuf_integrity()
174 SBFREE(s->s_buf); in sbuf_extend()
177 s->s_buf = newbuf; in sbuf_extend()
194 s->s_buf = buf; in sbuf_newbuf()
201 if (s->s_buf != NULL) in sbuf_newbuf()
208 if (s->s_buf == NULL) in sbuf_newbuf()
359 memmove(s->s_buf, s->s_buf + len, s->s_len); in sbuf_drain()
389 s->s_buf[s->s_len++] = c; in sbuf_put_byte()
713 s->s_buf[s->s_len] = '\0'; in sbuf_finish()
738 return (s->s_buf); in sbuf_data()
[all …]
/dports/www/varnish6/varnish-cache-varnish-6.6.2/lib/libvarnish/
H A Dvsb.c91 KASSERT(s->s_buf != NULL, in _assert_VSB_integrity()
158 s->s_buf = newbuf; in VSB_extend()
191 s->s_buf = buf; in VSB_newbuf()
198 if (s->s_buf != NULL) in VSB_newbuf()
204 s->s_buf = SBMALLOC(s->s_size); in VSB_newbuf()
205 if (s->s_buf == NULL) in VSB_newbuf()
307 s->s_buf[s->s_len++] = (char)c; in VSB_put_byte()
477 s->s_buf[s->s_len] = '\0'; in VSB_finish()
495 return (s->s_buf); in VSB_data()
525 SBFREE(s->s_buf); in VSB_delete()
[all …]
/dports/textproc/yodl/yodl-5fa97b175c85581d01329013cfdb4239f019b023/yodl/src/yodl/
H A Dgramchar.c8 static char s_buf[2]; variable
25 s_buf[0] = ascii; in gram_CHAR()
27 s_buf[0] = *arg; in gram_CHAR()
34 (*parser.d_insert)(&parser, s_buf); in gram_CHAR()
/dports/net/mpich2/mpich2-1.5/src/mpid/ch3/channels/nemesis/include/
H A Dmpid_nem_post.h62 int MPID_nem_mpich2_win_put (void *s_buf, void *d_buf, int len, MPID_nem_mpich2_win_t *remote_win);
64 int MPID_nem_mpich2_win_get (void *s_buf, void *d_buf, int len, MPID_nem_mpich2_win_t *remote_win);
70 int MPID_nem_mpich2_put (void *s_buf, void *d_buf, int len, int proc, int *completion_ctr);
73 int MPID_nem_mpich2_get (void *s_buf, void *d_buf, int len, int proc, int *completion_ctr);
86 #define MPID_nem_mpich2_win_get_val(s_buf, val, remote_win) do { \ argument
87 char *_s_buf = s_buf; \
/dports/graphics/geeqie/geeqie-1.6/src/
H A Dhistory_list.c222 gchar s_buf[1024]; in history_list_load() local
231 if (!fgets(s_buf, sizeof(s_buf), f) || in history_list_load()
232 strncmp(s_buf, "#History", 8) != 0) in history_list_load()
238 while (fgets(s_buf, sizeof(s_buf), f)) in history_list_load()
240 if (s_buf[0]=='#') continue; in history_list_load()
241 if (s_buf[0]=='[') in history_list_load()
246 ptr = s_buf + 1; in history_list_load()
257 value = quoted_from_text(s_buf); in history_list_load()
H A Dui_help.c99 gchar s_buf[1024]; in help_window_load_text() local
125 while (fgets(s_buf, sizeof(s_buf), f)) in help_window_load_text()
130 l = strlen(s_buf); in help_window_load_text()
132 if (!g_utf8_validate(s_buf, l, NULL)) in help_window_load_text()
134 buf = g_locale_to_utf8(s_buf, l, NULL, NULL, NULL); in help_window_load_text()
142 (buf) ? buf : s_buf, -1, in help_window_load_text()
/dports/sysutils/sleuthkit/sleuthkit-4.7.0/tests/
H A Dread_apis.cpp24 static char *s_buf; variable
60 tsk_fs_file_read(s_file2, tmp_off, s_buf, tmp_len, in fw_action1()
78 tsk_fs_file_read(s_file2, s_off, s_buf, tmp_len, in fw_action1()
88 if (memcmp(s_buf, a_buf, a_size)) { in fw_action1()
102 cnt = tsk_fs_read_block(fs, tmp_off, s_buf, fs->block_size); in fw_action1()
111 cnt = tsk_fs_read_block(fs, a_addr, s_buf, fs->block_size); in fw_action1()
119 if (memcmp(s_buf, a_buf, a_size)) { in fw_action1()
127 cnt = tsk_fs_read_block(fs, tmp_off, s_buf, fs->block_size); in fw_action1()
148 if (memcmp(s_buf, a_buf, a_size)) { in fw_action1()
166 if ((s_buf = (char *) malloc(a_fs->block_size)) == NULL) { in testfile()
[all …]
/dports/net/pfinger/pfinger-0.7.10/test/
H A Ddb_test.c124 struct stat s_buf; in main() local
146 stat("/tmp/statusdb", &s_buf); in main()
147 if (s_buf.st_size != NUM_USER*sizeof(struct db_entry)) { in main()
149 s_buf.st_size, NUM_USER*sizeof(struct db_entry)); in main()
/dports/biology/py-bx-python/bx-python-0.8.13/lib/bx/
H A D_seqmapping.pyx46 cdef unsigned char * s_buf
49 PyBytes_AsStringAndSize( string, <char **> &s_buf, &s_len )
55 t_buf[i] = self.table[ s_buf[ i ] ]
64 cdef unsigned char * s_buf
80 PyBytes_AsStringAndSize( string, <char **> &s_buf, &s_len )
83 if self.table[ s_buf[i] ] == -1:
129 cdef int *s_buf
132 PyObject_AsReadBuffer( src, <const void **> &s_buf, &s_len )
140 if s_buf[i] == -1:
142 elif s_buf[i] >= self.in_size:
[all …]

12345678910>>...12