vfs: check userland buffers before reading them.
[haiku.git] / src / tests / servers / app / playground / main.cpp
blob6d2d0a29b9fb9b86bde03d286440457498ab40aa
1 #include <stdio.h>
2 #include <string.h>
4 #include <Application.h>
5 #include <Catalog.h>
6 #include <Message.h>
8 #include "ObjectWindow.h"
10 #undef B_TRANSLATION_CONTEXT
11 #define B_TRANSLATION_CONTEXT "Playground"
14 // main
15 int
16 main(int argc, char** argv)
18 BApplication* app = new BApplication("application/x-vnd.Haiku-Playground");
20 BRect frame(50.0, 50.0, 600.0, 400.0);
21 BWindow* window = new ObjectWindow(frame, B_TRANSLATE_SYSTEM_NAME("Playground"));
23 window->Show();
25 app->Run();
27 delete app;
28 return 0;