summaryrefslogtreecommitdiff
path: root/src/util/String.c
Commit message (Collapse)AuthorAge
* Add missing call to va_endeschnett2012-10-23
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4884 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Modify the behaviour of mixed C/Fortran string comparisons, so that itschnetter2009-12-05
| | | | | | | | | | | | | is consistent with the routines converting Fortran strings to C strings. Fortran strings have a fixed length, and trailing white space is usually ignored. The Cactus routine converting Fortran to C strings did already ignore trailing white space, but the routine comparing Fortran and C strings did not. This is now consistent. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4590 17b73243-c579-4c4c-a9d2-2d5706c11dac
* fix wrong function name in grdoc commentjthorn2004-12-28
| | | | | | | -- it's Util_StrSep(), not CCTK_StrSep() git-svn-id: http://svn.cactuscode.org/flesh/trunk@3947 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add a function Util_StrMemCmpi that compares a C and a Fortran stringschnetter2004-04-12
| | | | | | | without copying the Fortran string. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3661 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Make it possible to use the string stuff in other standalone tests. Patchgoodale2003-05-09
| | | | | | | | | submitted by Jonathon Thornburg. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@3212 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added OpenBSD-ish Util_strlcpy and Util_strlcat functions submitted by Jonathongoodale2003-04-22
| | | | | | | | | Thornburg. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@3196 17b73243-c579-4c4c-a9d2-2d5706c11dac
* typo in grdocrideout2003-01-07
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3083 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Putting semicolons at the end of the CCTK_FILEVERSIONs.goodale2002-11-12
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@3028 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Optimized version of Util_StrCmpi() which doesn't need to call strlen().tradke2002-01-28
| | | | | | | Closes PR Cactus-892. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2597 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed Util_SplitFilename() to allocate both the dir and basename string.tradke2001-12-03
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2474 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixing some compiler warnings.goodale2001-06-25
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2250 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added Util_asprintf,Util_asnprintf,Util_snprintf,Util_vsnprintf.goodale2001-05-24
| | | | | | | | | | | | | | | | | | | | | | asprintf is like sprintf, but the first arg is a char ** and should basically be the address of a null pointer. The routine allocates enough space and passes back the new buffer pointer. asnprintf is as above, but the buffer need not be null. The thirs argument is the size of the current buffer, and if the string would be larger than that, the current buffer is freed and a new buffer big enough is allocated. snprintf and vsnprintf are pretty standard, except we don't have them on all platforms so I hunted down a file on the internet, written by Patrick Powel (papowell@astart.com), to give us a portable version of the functionality. It may not be entirely up to scratch with floating point - I've not tested it too thouroughly yet. This should enable us to make the web-server stuff a bit more secure against buffer-overruns. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2209 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Making rcsid strings constant - PR 669.goodale2001-05-10
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2159 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed bug in Util_SplitFilename.allen2000-10-05
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1857 17b73243-c579-4c4c-a9d2-2d5706c11dac
* grdoc, style-guidelines, ...goodale2000-10-05
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1854 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added Util_SplitFilename which provides the directory and filename from a ↵allen2000-10-03
| | | | | | full name git-svn-id: http://svn.cactuscode.org/flesh/trunk@1848 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Adding standard header fileallen2000-06-24
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1698 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Moved the util string functions to one place.goodale2000-05-02
Added Util_StrSep - same functionality as strsep. Renamed CCTK_StrDup as Util_Strdup. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1621 17b73243-c579-4c4c-a9d2-2d5706c11dac