HINT: se a debugger:
for (i=0;i for (i=0;i<=dim;i++) str2[i] = toupper(str2[i]);
str2 is never initialized and hence the assignment above is probably the issue
dark0s dark0s <[EMAIL PROTECTED]> wrote: This is last suggestion that I tell,
where is the problem now for segmentation fault:
bash-3.1# gcc -shared labsinf.c -o soundex.so
bash-3.1# sqlite3
SQLite version 3.5.7
Enter ".help" for instructions
sqlite> select load_extension('/root/soundex.so');
sqlite> select soundex('saverio');
S010
Segmentation fault
bash-3.1#
---------------------------------
Inviato da Yahoo! Mail.
La casella di posta intelligente.
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users