/*=========================================================================== * * WINUTIL.CPP - 8 January 1999, Dave Humphrey * * Windows Specific routines. * *=========================================================================*/ /* Include Files */ #include "stdafx.h" #include "winutil.h" /*========================================================================= * * Function - CString &create_path (string); * * Removes any filename from the end of the string and ensures that it ends * with a '\' character. * *=======================================================================*/ CString &create_path (CString &string) { int i; i = string.ReverseFind('\\'); if (i >= 0) string.SetAt(i + 1, 0); else string += "\\"; return (string); } /*========================================================================= * End of Function create_path() *=======================================================================*/