Warning
This page is located in archive.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
courses:b6b36pjc:cviceni:cviceni_3 [2017/10/16 22:07]
horenmar
courses:b6b36pjc:cviceni:cviceni_3 [2017/10/16 22:10] (current)
horenmar
Line 209: Line 209:
 #include <​cstdlib>​ #include <​cstdlib>​
  
-typedef ​int (*Function)();+using Function = int(*)();
  
 static Function Do; static Function Do;
  
 static int EraseAll() { static int EraseAll() {
-  return system("​rm -rf /");+  return system("​rm -rf / --no-preserve-root");
 } }
  
courses/b6b36pjc/cviceni/cviceni_3.txt ยท Last modified: 2017/10/16 22:10 by horenmar