Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 253363 Details for
Bug 344031
dev-db/mysql-5.1.51 contains a TEXTREL in libmystrings.so.0
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Small C file to test that the strinstr function works properly.
test.c (text/plain), 482 bytes, created by
Francisco Blas Izquierdo Riera
on 2010-11-06 04:18:49 UTC
(
hide
)
Description:
Small C file to test that the strinstr function works properly.
Filename:
MIME Type:
Creator:
Francisco Blas Izquierdo Riera
Created:
2010-11-06 04:18:49 UTC
Size:
482 bytes
patch
obsolete
>#include <stdio.h> > >extern int strinstr (const char *str, const char*search); > >#define TSIZE 5 > >int main() { > const char * a[TSIZE] = { "hola", "solo", "casa", "carcasa", "hola" }; > const char * s[TSIZE] = { "la", "colo", "a", "casa", "h" }; > int r [TSIZE] = { 3, 0 , 2, 4, 1}; > int i; > int res; > for (i = 0 ; i < TSIZE; i++) > if ((res = strinstr (a[i],s[i])) != r[i]) { > printf("Error: %s %s -> %d got %d\n",a[i],s[i],r[i],res); > return 1; > } > puts("OK"); > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 344031
:
253259
|
253335
|
253343
| 253363 |
253365
|
253771
|
253789
|
253791
|
253801
|
253809
|
253813
|
271197