Wednesday, June 09, 2010

allocate_window

Digital Signal Processing Library

Voice Lab

allocate_window

void allocate_window(int **window, int window_size)
{
(*window) = malloc(window_size * sizeof(int));
if((*window) == NULL) {
fprintf(stderr, "Error allocating memory for \
window (allocate_window)\n");
exit(1);
}
return;
}

No comments:

Post a Comment