Print this page
4378 Clean up %C in *time() functions
438 need documentation for strftime %s flag

*** 18,36 **** * * CDDL HEADER END */ /* * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * */ /* $Id: attribute.c 157 2006-04-26 15:07:55Z ktou $ */ - #pragma ident "%Z%%M% %I% %E% SMI" - /*LINTLIBRARY*/ #include <stdio.h> #include <stdlib.h> #include <stdarg.h> --- 18,36 ---- * * CDDL HEADER END */ /* + * Copyright (c) 2014 Gary Mills + * * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * */ /* $Id: attribute.c 157 2006-04-26 15:07:55Z ktou $ */ /*LINTLIBRARY*/ #include <stdio.h> #include <stdlib.h> #include <stdarg.h>
*** 955,965 **** struct tm *tm = localtime(&values[i]->datetime); if (tm != NULL) { char string[64]; ! strftime(string, sizeof (string), "%C", tm); rc = strlcat(buffer, string, buflen); }} break; case PAPI_COLLECTION: { char *string = alloca(buflen); --- 955,965 ---- struct tm *tm = localtime(&values[i]->datetime); if (tm != NULL) { char string[64]; ! strftime(string, sizeof (string), "%c", tm); rc = strlcat(buffer, string, buflen); }} break; case PAPI_COLLECTION: { char *string = alloca(buflen);