Added Print_attr for jpeg

This commit is contained in:
Andrew Haynes
2026-07-14 23:53:43 -04:00
parent f76b034a5b
commit 1b7eb6f076
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -31,3 +31,10 @@ print_attr(const PPM *src) {
printf("Name: %s\nFMT: %c\nWidth: %i, Height: %i\nLength: %i",
src->name, src->fmt, src->width, src->height, src->len);
}
void
__attribute__((overloadable))
print_attr(const JPEG *src) {
printf("Name: %s\nWidth: %i, Height: %i\nLength: %i",
src->name, src->width, src->height, src->len);
}