Difference between revisions of "CSE598/494 System-Level Hardware-Software Codesign"

From esoterum.org
Jump to: navigation, search
Line 3: Line 3:
 
*[http://library.lib.asu.edu/search/X?SEARCH=The+Data+Compression+Book ''The Data Compression Book'' at ASU Library]
 
*[http://library.lib.asu.edu/search/X?SEARCH=The+Data+Compression+Book ''The Data Compression Book'' at ASU Library]
  
 +
 +
== Xilinx ==
 +
*[http://www.xilinx.com/support/mysupport.htm#Virtex-II%20Pro Virtex-II Pro data sheets]
  
 
== Project 2 ==
 
== Project 2 ==

Revision as of 14:34, 28 February 2008

JPEG


Xilinx

Project 2

Here is an example of using `fmemopen' to create a stream for
reading from a string:

#include <stdio.h> 

static char buffer[] = "foobar"; 

int
main (void)
{
int ch;
FILE *stream;

stream = fmemopen (buffer, strlen (buffer), "r");
while ((ch = fgetc (stream)) != EOF)
printf ("Got %c\n", ch);
fclose (stream);

return 0;
}

This program produces the following output: 

Got f
Got o
Got o
Got b
Got a
Got r