- Tim Jones homepage (author of primary textbook, note that book code is only on cdrom with book)
- GNU/Linux Application Programming (1st ed.) by Tim Jones (much of first edition of Jones text on Google Books)
- Beginning Linux Programming (4th ed.) by Matthew and Stones (alternative text, can download code from this site)
- free download of Beginning Linux Programming (4th ed.)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Security audit | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' | |
| push: | |
| paths: | |
| - '**/Cargo.toml' | |
| - '**/Cargo.lock' | |
| jobs: | |
| security_audit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 1. Entry point: main function | |
| fn main() { | |
| // 2. Variables and mutability | |
| let x = 5; // Immutable by default | |
| let mut y = 10; // Mutable variable | |
| // 3. Data types | |
| let int_val: i32 = 42; // 32-bit signed integer | |
| let float_val: f64 = 3.14; // 64-bit float | |
| let is_active: bool = true; // Boolean |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // - Overflow: | |
| fn interproduct(a: i32, b: i32, c: i32) -> i32 { | |
| return a * b + b * c + c * a; | |
| } | |
| fn main() { | |
| println!("result: {}", interproduct(120, 100, 248)); | |
| } |