Revision 5d5812f492dbc1adac718a69d225396620b463fd authored by Brandon Casey on 21 August 2013, 20:49:31 UTC, committed by Junio C Hamano on 21 August 2013, 23:38:47 UTC
The syntax for retrieving the number of elements in an array is:

   ${#name[@]}

Signed-off-by: Brandon Casey <drafnel@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 4d06473
Raw File
test-mktemp.c
/*
 * test-mktemp.c: code to exercise the creation of temporary files
 */
#include "git-compat-util.h"

int main(int argc, char *argv[])
{
	if (argc != 2)
		usage("Expected 1 parameter defining the temporary file template");

	xmkstemp(xstrdup(argv[1]));

	return 0;
}
back to top