X-Git-Url: http://git.indexdata.com/?p=yazpp-moved-to-github.git;a=blobdiff_plain;f=src%2Fyaz-marc-sample.cpp;h=c83dd7466986da7a5bdaff1e7a763ffd7d8dda26;hp=a3d05ab848a5f2abbca9ccac8737c594ce17e7f4;hb=4b3585940162cf9ca65ca4a6914c0addcde50eef;hpb=5e3f7e1a720a08d30c407049c94c6ca825a5ed27 diff --git a/src/yaz-marc-sample.cpp b/src/yaz-marc-sample.cpp index a3d05ab..c83dd74 100644 --- a/src/yaz-marc-sample.cpp +++ b/src/yaz-marc-sample.cpp @@ -1,11 +1,11 @@ -/* - * Copyright (c) 2000-2001, Index Data. +/* This file is part of the yazpp toolkit. + * Copyright (C) 1998-2008 Index Data and Mike Taylor * See the file LICENSE for details. - * - * $Id: yaz-marc-sample.cpp,v 1.6 2005-05-17 13:00:56 adam Exp $ */ -#include +#include + +using namespace yazpp_1; static const char *marc_records[] = { "\x30\x30\x33\x36\x36\x6E\x61\x6D\x20\x20\x32\x32\x30\x30\x31\x36" @@ -1478,10 +1478,18 @@ static const char *marc_records[] = { "\x77\x6F\x72\x6B\x2C\x20\x4E\x44\x4E\x2E\x1E\x1D" }; -const char *Yaz_USMARC::get_record(int position) +const char *Yaz_USMARC::get_record(size_t position) { if (position >= 1 && position <= ( - sizeof(marc_records) / sizeof(*marc_records))) - return marc_records[position-1]; + sizeof(marc_records) / sizeof(*marc_records))) + return marc_records[position-1]; return 0; } +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +