Comments (2)
cvt_to_nix_path should only be defined if #ifdef WIN32
and it should be a void return type. e.g.
#ifdef WIN32
void cvt_to_nix_path(char *path) {
/* Replace back slashes by slashes and trim first two chars in paths like "C:/path" */
const size_t len = strlen(path);
if (len == 0)
return;
for (int k = 0; k < len; k++)
if (path[k] == '\\')
path[k] = '/';
if (path[1] == ':') {
for (int k = 0; k < len - 2; k++)
path[k] = path[k + 2];
path[len - 2] = '\0'; /* Make sure it's null terminated */
}
}
#endif
from mb-system.
#125 adds a test for utilities/mbformat.c which covers some of mb_get_format(), mb_format(), and mb_format_description(). However, it would still be better to have direct testing of all the functions in mbio/mb_format.c.
from mb-system.
Related Issues (20)
- mblevitus is broken HOT 3
- mblist command doesn't like filenames with spaces
- Problem compiling Pre-release 5.7.6beta38 HOT 3
- Data corruption while reading Kmall data with version 0 #MWC datagrams HOT 4
- Format of gridded data
- MB System installation on Mac OS Big Sur HOT 3
- configure and build mb-stystem on headless server with no X dependencies HOT 3
- mb_rt raytrace trajectory HOT 3
- Time conversion issue
- Raytracing integrated range
- s7k datafile with 1024 beams HOT 2
- Problem compiling MB-System: fatal error: gmt_common_byteswap.h: No such file or directory HOT 8
- Add mbgrd2gltf standalone program HOT 5
- configuere error on linux (ubuntu) can't find tirpc/rpc/types.h HOT 22
- Unable to apply time latency to kmall/mb261 survey data with mbpreprocess HOT 6
- 5.7.9 (beta) and Debian 11 HOT 1
- MB-System PDAL - mbio (ro) driver update
- Cannot install MB-System using home-brew HOT 2
- Provide a way to change altitude when running mbgrid.
- MBedit and MBvelocitytool GUI can't open in WSL 2 using Ubuntu 22.04 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mb-system.